Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    2,488

    Re: Pop-out box using a JFrame.

    It has to be final so that it can be accessed inside your ActionListener, which is called an anonymous inner class. Another way to do it, without the final (actually I'd recommend the final anyway,...
  2. Replies
    6
    Views
    2,488

    Re: Pop-out box using a JFrame.

    Haha no problem. If you use only a single instance of HelpFrame, you don't have to check anything before setting its visibility- if it's already visible, nothing will happen. So you can get rid of...
  3. Replies
    6
    Views
    2,488

    Re: Pop-out box using a JFrame.

    Instead of making a new HelpFrame each time, why don't you just keep track of a single HelpFrame declared outside of the actionPerformed() method?

    Or use a dialog.
Results 1 to 3 of 3