Activities

To see whether you have the swing of things, try the following activities:

  • Create a graphical user interface that includes a combo box in a scroll pane.

  • Add event-handling to the WriteMail application that displays the contents of the to, subject, and message components using System.out.println() when the Send button is clicked.

To see Java programs that implement these activities, visit the book's website at http://www.java24hours.com.

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.