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 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.