The JButton you're adding the ActionListener to is not the same JButton you're checking against in your ActionListener.
When you do:
JButton nextOne = new JButton("Next");
That's "hiding"...
Type: Posts; User: KevinWorkman
The JButton you're adding the ActionListener to is not the same JButton you're checking against in your ActionListener.
When you do:
JButton nextOne = new JButton("Next");
That's "hiding"...