Results 1 to 2 of 2
- 05-26-2011, 11:52 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 10
- Rep Power
- 0
- 05-26-2011, 12:33 PM #2
What happened when you tried it?
There's no magic about the dispose() method. You can call it in a similar way that you would call any other instance method.
That said, it's usually bad design for an application to have more than one JFrame. The more common idiom is to have one JFrame and use modal JDialogs (or JOptionPane methods that show a modal dialog).
db
Similar Threads
-
Class that extends JFrame help
By javaman1 in forum New To JavaReplies: 5Last Post: 11-10-2010, 02:29 AM -
Adding a menu from a seperate class to a JFrame
By minime12358 in forum Advanced JavaReplies: 2Last Post: 07-23-2010, 05:50 PM -
JFrame Hanging When Called From Another Class
By al_Marshy_1981 in forum AWT / SwingReplies: 5Last Post: 03-30-2010, 07:04 PM -
problem in accessing array values of one class in to jframe class
By cenafu in forum AWT / SwingReplies: 8Last Post: 03-21-2009, 09:34 AM -
i cant dispose the jframe(urgent)
By arunkumarinfo in forum NetBeansReplies: 2Last Post: 02-24-2009, 09:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks