Sample Handon Exam on Applets

Write a Java applet that displays a car radio interface. The interface should have a slot for a cassette tape and an LCD panel (use JTextArea objects for these components). It also includes power, play, stop, forward, reverse, and seek buttons. Finally, it should have a numeric panel for favorite radio channels. The different components should be laid out as follows. Try to keep as close to its appearance as possible.



The yellow region at the bottom of the applet containing your name is required. Some minimum functionality is required for this applet: when you click on "Play", the message "PLAY" should appear on the LCD panel; when you click on "Stop", the message "STOP" should display on the panel. Here are some dimensions for the applet given above that may help you with this handson exam: Applet/Frame design is worth 80 points, while button functionality 20 points.

Don't forget to:
  1. Indicate your name in your source code. The program should be named RadioApplet.java.
  2. Indicate the dimensions of your applet in the header comment in your source code. If you do not specify this, 175 x 350 will be assumed.