Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes How to show Modelless Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to show Modelless Frame" Watch "How to show Modelless Frame" New topic
Author

How to show Modelless Frame

Vishal Patel
Greenhorn

Joined: Jun 22, 2004
Posts: 13
I want to show one frame from another frame. And at a time we can work on most shown frame.
Gurumurthy Ramamurthy
Ranch Hand

Joined: Feb 13, 2003
Posts: 272
Pls. elaborate your qn.
Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50
Hi,

the method setModal(true) is available in JDialog not in JFrame.

what you can do is onshowing of second frame setFocable and setEnabled to false of first frame again setting then to tru when second frame closes.

or use JDialog.

Kriti
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to show Modelless Frame
 
Similar Threads
Alternate flows -- sequence diagrams
show()
GUI problem
One JFrame-Two Jpanels
destroying an applet