PDA

View Full Version : Close a frame from another frame


Ced88
12-14-2007, 06:29 AM
Like the title says, I want to close a frame while i'm inside another frame.

I've got 2 frames. Frame 1 is called Create and Frame 2 is called Manual.
Inside Frame 1 is a button that should close Frame 2.

This is the piece of code for the button that should close Frame 2.



class btnHandleidingUitHandler implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
Handleiding.setVisible(false);
}
}

For some odd reason this doesn't work. Anyone out there that can help me with this? :)

Vege
12-17-2007, 01:34 AM
Good that you found and answer, this is not really a java orientated forum anyway or atleast java questions here are quite rare.

http://vbforums.com/showthread.php?p=3083813