Summary

Section 11.1 Introduction

  • A graphical user interface (GUI) presents a user-friendly mechanism for interacting with an application. A GUI gives an application a distinctive “look” and “feel.”

  • Providing different applications with consistent, intuitive user interface components allows users to be somewhat familiar with an application, so that they can learn it more quickly.

  • GUIs are built from GUI components—sometimes called controls or widgets.

Section 11.2 Simple GUI-Based Input/Output with JOptionPane

  • Most applications use windows or dialog boxes (also called dialogs) to interact with the user.

  • Class JOptionPane (package javax.swing) provides prepackaged dialog boxes for both input and output. JOptionPane static method showInputDialog ...

Get Java™ How to Program, Seventh 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.