Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Replies
    15
    Views
    3,586

    Re: help with JButton closing a JFrame :)

    System.exit(0) does a lot more than just closing a frame.
  2. Replies
    15
    Views
    3,586

    Re: help with JButton closing a JFrame :)

    Where did you get the code from?
    Why do you expect the actionPerformed method to be called?
    Have you read about how to use ActionListeners?
    Go to this site and read up:
    How to Write an Action...
  3. Replies
    15
    Views
    3,586

    Re: help with JButton closing a JFrame :)

    How is the method with the call to the setVisible method called? Where in your code do you call it?
    You have to cause the method to be called by writing some code.
  4. Replies
    15
    Views
    3,586

    Re: help with JButton closing a JFrame :)

    Have you tried making frame final?
    final JFrame frame = ...
  5. Replies
    15
    Views
    3,586

    Re: help with JButton closing a JFrame :)

    If there are error messages, please copy and paste the full text.
  6. Replies
    15
    Views
    3,586

    Re: help with JButton closing a JFrame :)

    Can you explain? If there are error messages, please copy and paste the full text.

    Is the frame variable in scope where you are trying to reference it?
    Move its definition so it is visible where...
Results 1 to 6 of 6