Working through books and tutorials, led me to believe that I can set up listeners to my widgets, and then have one actionPerformed method which will
test for those. I have set up such a method, and am getting some weird behaviour. The save button opens a save JFileChooser and saves text to a file, and the open button, opens an open JFileChooser. However, the open button's JFIleChooser, doesn't read text to a window. I've even put a bit of debugging code such as:
which doesn't appear when the Open button is called. I also changed the open button to a save button, which threw up an open button, despite my change in the code! There is also a Help->About window, which is called fine, but again, no
works.
What should I be looking out for? The code runs fine, until I try and implement the open in actionPeformed to start reading text from a file. That's when I noticed the weirdness.
On to the main code chunks