O'Reilly logo

Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition by 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

Day 10. Building a Swing Interface

Although computers can be operated in a command-line environment such as a Linux shell or the Windows command prompt, most computer users expect software to feature a graphical user interface (GUI) and to receive input with a mouse and keyboard.

GUI software can be one of the more challenging tasks for a novice programmer, but as you learned yesterday, Java has simplified the process with Swing.

Swing offers the following features:

Image Common user interface components, including buttons, text fields, text areas, labels, check boxes, radio buttons, scrollbars, lists, menu items, and sliders.

Containers—interface ...

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