O'Reilly logo

Sams Teach Yourself Java™ 6 in 21 Days by Laura Lemay, Rogers Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Working with Swing

The Java class library includes a set of packages called Swing that enable Java programs to offer graphical user interfaces and collect user input with the mouse, keyboard, and other input devices.

Today, you will use Swing to create applications that feature each of these graphical user interface components:

  • Frames—Windows that can include a title bar; menu bar; and Maximize, Minimize, and Close buttons

  • Containers—Interface elements that can hold other components

  • Buttons—Clickable regions with text or graphics indicating their purpose

  • Labels—Text or graphics that provide information

  • Text fields and text areas—Windows that accept keyboard input and allow text to be edited

  • Drop-down lists—Groups of related items ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required