Lesson 10. Building an Interface

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

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

Swing offers the following features:

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

  • Containers—interface components that can be used to hold other components (including other containers). Containers ...

Get Sams Teach Yourself Java in 21 Days (Covers Java 11/12), 8th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.