File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
Window Title Bar
Craeting a Modal Window
What is it called when you force the user to deal with that window before they can move on?
Displaying a JWindow
how to disable minimize option in JFrame