Exam 15: Advanced Gui Topics

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

Describe the purpose of an accelerator. Provide an example of an accelerator

(Essay)
4.9/5
(32)

Write the statement to establish a GridLayout with three horizontal rows and six vertical columns in a Container named myGrid .

(Short Answer)
4.9/5
(31)

The FlowLayout class contains three constants you can use to align Component s with a ____ .

(Multiple Choice)
4.7/5
(45)

  The above figure shows a JFrame with a horizontal JMenuBar named myMenu that holds two JMenu s: menu1 and menu2 . A submenu and JMenuItem s also exist with the Colors yellows , blues , and greens . Using the add() method, write the statements to add the JMenu s to the JMenuBar , and write the statements to add a submenu and JMenuItem s to the Colors menu. The above figure shows a JFrame with a horizontal JMenuBar named myMenu that holds two JMenu s: menu1 and menu2 . A submenu and JMenuItem s also exist with the Colors yellows , blues , and greens . Using the add() method, write the statements to add the JMenu s to the JMenuBar , and write the statements to add a submenu and JMenuItem s to the Colors menu.

(Essay)
4.8/5
(38)

   Write the statement that will provide a shortcut menu key for a menu named myShortcutMenu . When a user presses Alt+F on the keyboard, the statement will set the F in File (shown in the above figure) as the mnemonic. Write the statement that will provide a shortcut menu key for a menu named myShortcutMenu . When a user presses Alt+F on the keyboard, the statement will set the F in File (shown in the above figure) as the mnemonic.

(Short Answer)
4.9/5
(31)

An additional layered pane exists above the root pane, but it is not often used explicitly by Java programmers.

(True/False)
4.8/5
(37)

When components in a Swing UI require more display area than they have been allocated, you can use a ____ container to hold the components and allow the user to display the components using scroll bars.

(Multiple Choice)
4.8/5
(39)

How would you arrange columns into equal rows and columns? Provide an example.

(Essay)
4.8/5
(33)

If you wanted to see the x-coordinate of a user click, you would use the ____ method of the MouseEvent class.

(Multiple Choice)
4.8/5
(35)

With ____, a redrawn JPanel is displayed only when it is complete; this provides the viewer with updated screens that do not flicker while being redrawn.

(Multiple Choice)
4.9/5
(39)

How do you find the red, green, and blue components of a color?

(Essay)
4.9/5
(35)

Describe the way in which components expand to fill their layout areas in FlowLayout and BorderLayout .

(Essay)
4.9/5
(41)

To force the display of a scroll bar, you can use class variables defined in the ScrollPaneConstants class. What are they?

(Essay)
4.8/5
(33)

The JMenu s are added to the JMenuBar using the ____ method.

(Multiple Choice)
4.8/5
(41)

Use the ____ layout manager when you add components to a maximum of five sections.

(Multiple Choice)
4.8/5
(34)

Write the statement to set the background color of a button named goBtn to a color of green.

(Short Answer)
4.8/5
(32)

When you use BorderLayout , you are required to add components into each of the five regions.

(True/False)
4.8/5
(33)

What are the four methods defined in the Component class for adding event listeners?

(Essay)
4.9/5
(38)

What is a mnemonic? Provide an example of adding a mnemonic.

(Essay)
4.8/5
(44)

A(n) ____________________ is a plain, borderless surface that can hold lightweight GUI components.

(Short Answer)
4.9/5
(33)
Showing 21 - 40 of 66
close modal

Filters

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