Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close a frame from another frame

    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?

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Posts
    200
    Thanks
    27
    Thanked 2 Times in 2 Posts
    Hey...

    Can you give me a little more code to have a look at?

    Thanks,

    Nicky


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •