Exam 6: Graphical User Interfaces

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A panel is displayed as a separate window, but a frame can only be displayed as part of another container.

(True/False)
4.8/5
(29)

A(n) _______________________ is a graphical window that pops up on top of any currently active window so that the user can interact with it.

(Multiple Choice)
4.7/5
(35)

A mnemonic is a short line of text that will appear when the cursor is rested momentarily on top of the component.

(True/False)
4.8/5
(40)

Write a short class that represents a panel with a single radio button that has the option "Yes" and the option "No." By default, the Yes button should be checked.

(Essay)
4.7/5
(31)

Which of the following components can be toggled on or off using the mouse, indicating that a particular boolean condition is set or unset?

(Multiple Choice)
4.9/5
(39)

Write a keyPressed method that behaves as follows. If the user presses the up arrow, the method should output "You pressed up" using the System.out.println method. If the user presses the down arrow, the method should output "You pressed down" using the System.out.println method.

(Essay)
4.8/5
(47)

Which of the following event descriptions best describes the mouse entered event?

(Multiple Choice)
4.8/5
(40)

Suppose we have created a class called MyGUI, which represents a GUI. Write a program that creates a JFrame object, adds a MyGUI object to the frame and makes it visible.

(Essay)
4.8/5
(41)

The ability of the user should be ignored when designing GUIs. In other words, GUIs should be designed with the most unskilled user in mind.

(True/False)
4.9/5
(43)

Check boxes operate as a group, providing a set of mutually exclusive options.

(True/False)
4.8/5
(43)

A container is goverened by a(n) __________________, which determines exactly how the components added to the panel will be displayed.

(Multiple Choice)
4.7/5
(39)

Which of the following layout managers organize the components from left to right, starting new rows as necessary?

(Multiple Choice)
4.8/5
(35)

Any Swing component can be assigned a tool tip.

(True/False)
4.8/5
(32)

A(n) ____________________ is an object that waits for an event to occur and responds in some way when it does.

(Multiple Choice)
4.8/5
(30)

Write a short class that represents a panel with a single slider that has values from 0 to 250, with large tick marks in increments of 50 and small tick marks in increments of 10.

(Essay)
4.8/5
(27)

Describe the difference between a heavyweight container and a lightweight container. Give an example of each.

(Essay)
4.9/5
(30)

A dialog box allows the user to select one of several options from a "drop down" menu.

(True/False)
4.8/5
(33)

Write a short snippet of code that creates a JPanel object called p1, and creates a border around it containing the title "this is a JPanel."

(Short Answer)
4.9/5
(35)

Write a program that produces a simple GUI that has a single button labeled "Push Me."

(Essay)
4.7/5
(37)

Explain the difference between a Grid Layout and a GridBag Layout.

(Essay)
4.8/5
(38)
Showing 21 - 40 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)