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.

Code:
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?