Action listener to terminate the program (cont'd)
Listing 8 causes
- the exit method
- of the System class
- to be called
- when the user clicks the Quit button.
According to the Sun documentation, a call to the exit method
- "Terminates the currently running Java Virtual Machine."