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,...
Type: Posts; User: KevinWorkman
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,...
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...
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.