Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT_AWT hangs with modal JDialog
SWT_AWT hangs with modal JDialog [message #441200] Wed, 11 August 2004 21:36 Go to next message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hello,

I have a strange problem. I'm using SWT_AWT to populate a JDialog from
a component which uses a static call which takes a java.awt.Frame as an
argument.

If the Foo class calls it's JDialog (inside the Foo code) with modal =
false, the application runs fine. The JDialog comes up, and goes away
when desired. When modal = true, the dialog comes up, but Eclipse
hangs. I can't get the JDialog to go away, and am forced to kill Eclipse.

Any ideas?

Many thanks,
Dylan McReynolds
_____________________

group = new Group(parent, SWT.EMBEDDED);
group.setLayout(new FillLayout());
java.awt.Frame swingFrame = SWT_AWT.new_Frame(composite);

try{

Foo.doPropertiesDialog(swingFrame);
System.out.println("Didn't hang");
}
catch(....)
Re: SWT_AWT hangs with modal JDialog [message #441227 is a reply to message #441200] Thu, 12 August 2004 14:59 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Nope. Enter a bug report. Thanks.

<user@domain.invalid> wrote in message news:cfe3da$9gg$1@eclipse.org...
> Hello,
>
> I have a strange problem. I'm using SWT_AWT to populate a JDialog from
> a component which uses a static call which takes a java.awt.Frame as an
> argument.
>
> If the Foo class calls it's JDialog (inside the Foo code) with modal =
> false, the application runs fine. The JDialog comes up, and goes away
> when desired. When modal = true, the dialog comes up, but Eclipse
> hangs. I can't get the JDialog to go away, and am forced to kill Eclipse.
>
> Any ideas?
>
> Many thanks,
> Dylan McReynolds
> _____________________
>
> group = new Group(parent, SWT.EMBEDDED);
> group.setLayout(new FillLayout());
> java.awt.Frame swingFrame = SWT_AWT.new_Frame(composite);
>
> try{
>
> Foo.doPropertiesDialog(swingFrame);
> System.out.println("Didn't hang");
> }
> catch(....)
Previous Topic:Possible bugs (MouseTrackListener, MouseMoveListener, Toolbar.getItem(Point p))
Next Topic:custom SWT widget problem
Goto Forum:
  


Current Time: Tue Apr 16 12:50:45 GMT 2024

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

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

Back to the top