Hi,
I can't figure out why my exit button is not working as all the other buttons in my code seem to be working. I have given the code below.
The constructor for the button is
private JButton exit;
....
add(exit);
....
exit = new JButton("Exit");
exit.addActionListener(this);
The code for the ActionEvent is
Object eventSource = e.getSource();
if(eventSource == exit){
textIO.setText("QUIT");
System.exit(0);
}
Thanks