This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
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!