Chapter 8 Flashcards
application
A class that sets up the program elements in a main method and provides an entry point for running a Java program. (295)
controller pattern
Classes that include listeners, which are responsible for handling user interaction with the program. (295)
data model
Like a GUI program, waits for an event such as the user clicking a button before responding. (298)
format flag
A character that is used for justification or other format styles. (289)
format specifier
A code that begins with the % character and ends with a letter that indicates the format type. (289)
menu-driven program
A loop that displays a menu of options, inputs a user’s choice, and runs a command associated with that option. (285)
query-controlled input
A loop that performs a task and then asks the user whether or not to perform the task again. (284)
view
A class responsible for displaying a view of the data model and providing the user with controls for interaction, such as command buttons and data fields. (295)