Exam 19: Graphical User Interfaces

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

What is the easiest way to create complex-looking GUI layouts? I use the GridBagLayout manager II nest panels, each with its own layout manager III use multiple layout managers in the same container

(Multiple Choice)
4.9/5
(28)

____________________ are round and have a black dot when selected.

(Multiple Choice)
4.7/5
(36)

What is the container for top-level menu items?

(Multiple Choice)
4.7/5
(37)

For a new programmer using the Swing JSlider component for the first time, which of these is the least important thing to know?

(Multiple Choice)
4.9/5
(33)

When method makeMenuItem is called, how many objects are being created? public JMenuItem makeMenuItem(final String menuLabel) { JMenuItem mi = new JMenuItem(menuLabel); Class MyMenuListener implements ActionListener { Public void actionPerformed(ActionEvent

(Multiple Choice)
4.8/5
(39)

How do the lifetimes of the three objects menuLabel, mi, and the anonymous object new MyMenuListener()compare? public JMenuItem makeMenuItem(final String menuLabel) { JMenuItem mi = new JMenuItem(menuLabel); Class MyMenuListener implements ActionListener { Public void actionPerformed(ActionEvent

(Multiple Choice)
4.8/5
(34)

Which layout manager may change the location and size of existing components when new ones are added? I FlowLayout II BorderLayout III GridLayout

(Multiple Choice)
4.8/5
(39)

When adding a component to a container with the ____ layout, specify the NORTH, EAST, SOUTH, WEST, or CENTER position.

(Multiple Choice)
4.9/5
(39)

When a menu item is selected, what type of event does it send?

(Multiple Choice)
4.8/5
(42)

Suppose a JPanel with a BorderLayout manager contains two components: component1, which was added to the NORTH, and component2, which was added to the SOUTH. Which parts of the JPanel will appear? I North II South III Center IV West V East

(Multiple Choice)
4.8/5
(44)

Which component can be added to a menu? I JMenuBar II JMenu III JMenuItem

(Multiple Choice)
4.7/5
(40)

Which elements of creating a graphical user interface are made easier by a GUI builder? I creating event handlers II configuring component properties III adding components

(Multiple Choice)
4.9/5
(40)

The JFrame has a content pane with a default BorderLayout manager. Which method allows changing it to a FlowLayout manager?

(Multiple Choice)
4.7/5
(29)

Which of the following is not a visual component?

(Multiple Choice)
4.9/5
(36)

Examine the code below. What type of class is MyMenuListener? public JMenuItem makeMenuItem(String menuLabel) { JMenuItem mini = new JMenuItem(menuLabel); Class MyMenuListener implements ActionListener { Public void actionPerformed(ActionEvent

(Multiple Choice)
4.9/5
(37)

How do you add two buttons to the south area of a frame using the BorderLayout?

(Multiple Choice)
4.9/5
(37)

What features do GUI builders have to speed the development of the graphical user interface of the program? I setting properties of dialog boxes II automated event-handling code generation III drag and drop of visual components

(Multiple Choice)
4.7/5
(38)

You can add a(n) _________ to a panel to make it visible.

(Multiple Choice)
4.9/5
(40)

The documentation for the JSlider class lists ____ inherited methods.

(Multiple Choice)
4.8/5
(34)

A ________ is a user-interface component with two states: checked and unchecked.

(Multiple Choice)
4.9/5
(38)
Showing 21 - 40 of 76
close modal

Filters

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