Exam 15: Advanced Gui Topics

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

Write the code to create a scroll pane named myScroll that will display an image named scenery with a vertical scroll bar always present and a horizontal scroll bar as needed.

(Essay)
4.7/5
(89)

You use the ____________________ interface when you are interested in actions the user initiates from the keyboard.

(Short Answer)
4.8/5
(79)

Match each term with the correct statement below. -The default size of a component

(Multiple Choice)
4.9/5
(91)

When you create a simple scroll pane using the constructor that takes no arguments, horizontal and vertical scroll bars appear only if they are needed.

(True/False)
4.7/5
(75)

With GridLayout, you can specify the number of rows only; you can use ____ for the number of columns and let the layout manager determine the number of columns.

(Multiple Choice)
4.8/5
(80)

Which of the following is NOT a method of the KeyListener interface?

(Multiple Choice)
5.0/5
(77)

Each JMenu can contain options, called JMenuItems, or can contain submenus that are ____.

(Multiple Choice)
4.8/5
(71)

____________________ are lists of user options; they are commonly added features in GUI programs.

(Short Answer)
4.9/5
(79)

Layout managers are interface classes that align components to prevent crowding or overlapping.

(True/False)
4.9/5
(82)

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

(Essay)
4.7/5
(75)

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

(True/False)
4.8/5
(88)

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

(Essay)
4.9/5
(78)

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

(Essay)
4.8/5
(87)

What is the parent class of JPanel?

(Multiple Choice)
4.7/5
(83)

List and describe the four constructors that can be used when creating a JPanel object.

(Essay)
4.8/5
(74)

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.9/5
(77)

Match each term with the correct statement below. -Allows the user to scroll initially invisible parts of the pane into view

(Multiple Choice)
4.8/5
(76)

Write the statement to create a Color object named myGray with red, green, and blue values of 100 each.

(Essay)
4.9/5
(76)

What is an adapter class?

(Essay)
4.7/5
(85)

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

(Short Answer)
5.0/5
(83)
Showing 41 - 60 of 69
close modal

Filters

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