Exam 19: Graphical User Interfaces

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

To create a _____ layout, you supply the number of rows and columns in the constructor, then add the components, row by row, left to right.

(Multiple Choice)
4.9/5
(42)

If one ChangeListener is listening for three different JSlider objects, how can we determine which of the three sliders caused the event when the code enters the stateChanged method?

(Multiple Choice)
4.8/5
(37)

Given four JRadioButton objects in a ButtonGroup, how many radio buttons can be selected at the same time?

(Multiple Choice)
4.8/5
(41)

What is the most time-effective way to build a GUI quickly and concentrate on coding the logic of the program?

(Multiple Choice)
4.8/5
(38)

Which layout manger would be best suited to create a simple navigation GUI with directional arrows for left, right, up, down and enter?

(Multiple Choice)
4.9/5
(43)

Which code will create a JSlider with a range from 0 to 100, with an initial value of 50? I new JSlider() II new JSlider(0, 100, 50) III new JSlider(50, 0, 100)

(Multiple Choice)
4.7/5
(32)

The ChangeEvent class defines no methods. What makes it possible to call the getSource method on a ChangeEvent object?

(Multiple Choice)
4.7/5
(37)

Which layout manager allows you to add components to it by invoking the container's add method with the component as the only argument to add. I FlowLayout II BorderLayout III GridLayout

(Multiple Choice)
4.9/5
(29)

When using a combo box, the _______ displays the name of the current selection.

(Multiple Choice)
4.9/5
(43)

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
(43)

Which class has constants called NORTH and SOUTH?

(Multiple Choice)
4.9/5
(40)

What is known for certain from this correct code excerpt? ActionListener openListener = new FileOpenListener(); JMenuItem fileOpen = new JMenuItem("Open File"); FileOpen.addActionListener(openListener);

(Multiple Choice)
4.9/5
(32)

In Java, each container has its own ____________________, which determines how the components are laid out.

(Multiple Choice)
4.8/5
(43)

The code below will not compile successfully unless the argument to the makeMenuItem method is final. Why not? 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)

Which of the following GUI objects generate(s) action events? I JComboBox II JRadioButton III JButton

(Multiple Choice)
4.7/5
(41)

Which GUI element allows text entry from the program user?

(Multiple Choice)
4.8/5
(34)
Showing 61 - 76 of 76
close modal

Filters

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