Case 8-1Alex is creating a GUI-based program using the model/view/controller pattern.Alex uses a ____ class to inform a listener attached to a button that a user has clicked it.

A. model
B. view
C. controller
D. application


Answer: C

Computer Science & Information Technology

You might also like to view...

(Computer Monitor Invoice GUI) In this exercise, you apply the GUI design guide- lines you have learned to a graphical user interface for an invoicing application (Fig. 3.24). You will specify the bounds of the JTextFields in the rows of the GUI that begin with the 15", 17" and 19" JLabels.


a) Copying the template to your working directory. Copy the C:Examples Tutorial03ExercisesMonitorInvoice directory to your C:SimplyJava direc- tory.
b) Opening the Command Prompt window and changing directories. Open the Com- mand Prompt by selecting Start > Programs > Accessories > Command Prompt. Change to your working directory by typing cd C:SimplyJavaMonitorInvoice, then pressing Enter.
c) Compiling the template application. Compile your application by typing javac
MonitorInvoice.java, then pressing Enter.
d) Running the template application. Run the application by typing java MonitorIn- voice. The GUI of the Monitor Invoice template application should appear as shown in Fig. 3.25.
e) Closing the application. Close your running application by clicking its close button. f) Opening the template file. Open the MonitorInvoice.java file in your text editor.
g) Customizing the JTextFields below the Quantity: JLabel. Using Fig. 3.24 and the template code

Computer Science & Information Technology

In File Explorer, the title bar contains the typical control buttons that let you minimize, maximize or restore down, and close the window

Indicate whether the statement is true or false

Computer Science & Information Technology

The touch screen gesture of ____ means to press and hold one finger and then move the finger horizontally or vertically on the screen.?

A. ?stretching B. ?pressing and holding C. ?slipping D. ?swiping

Computer Science & Information Technology

What is the difference between anifstatement and anif/elsestatement?

What will be an ideal response?

Computer Science & Information Technology