Add a login window to the manufactured code, and wire the file/exit
menu item of the main window to dispose of the main window (crude as
it is, this is apparently accepted practice for exiting Swing applications.)