Skip to main content


Eclipse Community Forums
Forum Search:

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


Current Time: Wed Oct 28 23:57:56 GMT 2020

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

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

Back to the top