File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Making Frame modal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Making Frame modal" Watch "Making Frame modal" New topic

Making Frame modal

Harry Pattern

Joined: Nov 27, 2002
Posts: 23
Hi guys,
How can make a frame modal. That is if a frame has been loaded, the frame behind should not be accessible.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Perhaps a java.awt.Dialog, a javax.swing.JDialog, or a javax.swing.JOptionPane could be used to accomplish what you're trying.
[ April 12, 2003: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Making Frame modal
It's not a secret anymore!