When you begin all Swing-based applications, you must set the look and feel and add a WindowListener so that when a user clicks on the exit box, the program exits.
JToggleButtons work well when you want buttons that stay down or up inside the JToolBar. You can also make them behave like Radio buttons (only one button down at a
If you want to play a sound when someone visits your Web page, an effective, simple, browser-independent approach is to insert a META refresh tag that loads the sound file.