Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Modal dialog with Swing content
Modal dialog with Swing content [message #459106] Tue, 02 August 2005 03:26
Eclipse UserFriend
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
Previous Topic:How to hide/disable a views contents while resizing the view
Next Topic:What SWT Layout ?
Goto Forum:
  


Current Time: Sun Jul 06 00:02:10 EDT 2025

Powered by FUDForum. Page generated in 1.07492 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top