Meaningless Drivel is fun!
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

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

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...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: create modal JWindow
It's not a secret anymore!