Modal dialog with Swing content [message #459106] |
Tue, 02 August 2005 07:26 |
Dieter Wachters Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi,
We are currently porting our Swing application to eclipse. Because we have
too many dialogs to port we would like to keep using Swing for them.
I tried to use the SWT_AWT bridge for this, but I couldn't get modal dialogs
to work properly.
I tried two ways:
* Simply create a new modal JDialog and show it. This blocks the entire
eclipse application after some dragging. My guess is that the SWT event loop
is blocked.
* Create a modal SWT dialog and show a JPanel in it by using the SWT_AWT
bridge. The place where the JPanel should be, the dialog is just
transparent. I guess in this case the AWT event queue is blocked, so the
panel is never drawn.
How can I create a modal dialog with Swing content?
Thanks in advance,
Dieter Wachters
|
|
|
Powered by
FUDForum. Page generated in 0.03073 seconds