Exam 11: Advanced User Interfaces

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

The _______ interface toolkit has a large set of user-interface components.

(Multiple Choice)
4.9/5
(39)

What is the best first step in picking the layout managers for a set of nested panels?

(Multiple Choice)
4.9/5
(38)

You wish to detect when the mouse is moved into a graphical component. Which methods of the associated MouseListener interface will provide this information?

(Multiple Choice)
4.8/5
(42)

A(n) ____ is used when you have a large set of choices.

(Multiple Choice)
4.9/5
(38)

The documentation for the JSlider class lists ____ inherited methods.

(Multiple Choice)
4.8/5
(37)

Which method can a program use to set the selected choice in a JRadioButton?

(Multiple Choice)
4.8/5
(40)

What is the best way to start using Swing components?

(Multiple Choice)
4.8/5
(37)

If the user presses and releases a mouse button in quick succession, which methods of the MouseListener interface are called?

(Multiple Choice)
4.8/5
(29)

What method is required by the ChangeListener interface?

(Multiple Choice)
4.9/5
(46)

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.8/5
(38)

What does the MouseAdapter class provide?

(Multiple Choice)
4.8/5
(29)

If you want to have a tabular arrangement of components, in which columns have different sizes or one component spans multiple columns, a ____ would be appropriate.

(Multiple Choice)
4.8/5
(47)

What type of event does the JSlider class generate?

(Multiple Choice)
5.0/5
(37)

Insert the missing code in the following segment. The code intends to get the newly selected item from the combo box. JComboBox facenameCombo = new JComboBox(); String selectedString = __________________________;

(Multiple Choice)
4.8/5
(35)

What is the default layout manager of the content pane of a JFrame?

(Multiple Choice)
4.8/5
(44)

If the makeMenuItem method is called four times, at most how many different actions can be performed by these four newly created MenuItem objects when the doSomethingElse method is called? Public JMenuItem makeMenuItem(String menuLabel) { JMenuItem mi = new JMenuItem(menuLabel); Class MyMenuListener implements ActionListener { Public void actionPerformed(ActionEvent mi.addActionListener(new MyMenuListener()); Return mi; } }

(Multiple Choice)
4.9/5
(27)

The statement that would add smallButton to the button group in the following code is _________. JRadioButton smallButton = new JRadioButton("Small"); ButtonGroup group = new ButtonGroup();

(Multiple Choice)
4.8/5
(30)

Suppose a JPanel with a BorderLayout manager contains two components: component1, which was added to the CENTER, 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
(33)

Which of the following adds a border to the following panel? JPanel panel = new JPanel();

(Multiple Choice)
4.8/5
(26)

Which layout manager places objects left-to-right, and creates a new row only if when the current row cannot accommodate another object?

(Multiple Choice)
4.9/5
(34)
Showing 41 - 60 of 91
close modal

Filters

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