aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes create modal JWindow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "create modal JWindow" Watch "create modal JWindow" New topic
Author

create modal JWindow

Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
how to create modal JWindow? or JDialog not with title bar


Senior software engineer
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Simple answer... you can't... ( well... not without mucking around with JNI and native code... )

The closest you can get is putting a FocusListener on it and doing a toFront() whenever it loses focus... it works, but it doesn't look pretty...

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create modal JWindow