Thread: Java Help
View Single Post
  #9  
Old March 3, 2005, 12:36 AM
Rubu's Avatar
Rubu Rubu is offline
Moderator
 
Join Date: February 15, 2004
Location: Michigan
Favorite Player: Mashrafee Mortaza
Posts: 8,361

i found it!!!!

just declear the frame outside the stub of the jButton, right at the beginning of

public class Frame1 extends JFrame{......

that way, when i press the jbutton, it will not create a new frame, but will reshow the same frame already created.
Reply With Quote