View Single Post
  #2 (permalink)  
Old 12-10-2007, 07:46 AM
revathi17 revathi17 is offline
Member
 
Join Date: Aug 2007
Posts: 22
revathi17 is on a distinguished road
If all you need is an empty frame when clicking the save game option, here is what you can do

Code:
public class Hw extends JFrame implements ActionListener{ ...... saveItem.addActionListener(this); ................. public void actionPerformed(ActionEvent e) { JFrame newFrame = new JFrame("Empty frame"); newFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); newFrame.setSize(200,200); newFrame.setVisible(true); } }
This would open an empty frame when you click the save game.you can do whatever you want in it.
Hope I got your question correct...

-R
Reply With Quote