Exam 14: Introduction to Swing Components

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

When you create a(n) ____, you can group several components, such as JCheckBoxes, so a user can select only one at a time.

(Multiple Choice)
4.9/5
(35)

You use the ____ method to obtain the title of a JFrame.

(Multiple Choice)
4.8/5
(44)

How do you modify whether or not a JTextField can be edited?

(Essay)
4.8/5
(41)

Swing components are UI elements such as dialog boxes and buttons. You can usually recognize their names because they begin with the letter ____________________.

(Short Answer)
4.8/5
(31)

What type of method must you implement when you register an event listener?

(Essay)
4.8/5
(33)

What are some of the decisions you must make when extending a JFrame?

(Essay)
4.8/5
(42)

Which of the following statements will change the value displayed in a JLabel named hello?

(Multiple Choice)
5.0/5
(35)

Match each term with the correct statement below. -Require interaction with the local operating system

(Multiple Choice)
4.9/5
(38)

Write the statement to provide a JTextField object named myInfo that allows enough room for a user to enter 15 characters.

(Essay)
4.9/5
(29)

When constructing a Font object, which of the following arguments is NOT required?

(Multiple Choice)
4.9/5
(36)

The JButton, JCheckBox, JComboBox, and JRadioButton components are associated with the ____ method.

(Multiple Choice)
4.8/5
(45)

Match each term with the correct statement below. -A coffee-cup icon in the frame's title bar, and the Minimize, Restore, and Close buttons

(Multiple Choice)
4.7/5
(41)

Within an implementation of the itemStateChanged() method, you can use the ____ method to determine which object generated the event, and the getStateChange() method to determine whether the event was a selection or a deselection.

(Multiple Choice)
4.8/5
(33)

Write the statement to create a layout manager named myLayout that centers components in each row.

(Essay)
4.8/5
(35)
Showing 61 - 74 of 74
close modal

Filters

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