Font size
WorksheetsJAVA QUIZ
Total questions: 10
Worksheet time: 5mins
Which Swing control allows placement of formatted text information on a frame and uses a text property?
JLabel
JTextField
JTextArea
JEditorPane
Which control accepts a single line of typed information from the user?
JTextArea
JTextField
JLabel
JList
Which Swing control is designed to accept multiple lines of scrollable typed information?
JTextField
JTextArea
JLabel
JPasswordField
What is the typical use of a JCheckBox in a Swing application?
To select one option from a mutually exclusive group
To provide a yes or no answer to a question
To present a drop-down list of items
To display static text captions
How does a JRadioButton differ from a JCheckBox according to the description?
Radio buttons accept text input, check boxes do not
Radio buttons are used in mutually exclusive groups, check boxes are independent
Radio buttons display formatted text, check boxes display icons
Radio buttons create scroll bars, check boxes create lists
Which control provides a drop-down list from which users can choose an item such as a state or country?
JList
JComboBox
JMenu
JTable
Which statement accurately describes JList based on the provided material?
It is a drop-down control that allows only single selection
It is a list with the list portion always visible and supports multiple selections
It is a single-line text input field
It is a formatted text label used for captions
What is the role of a JScroll control as described in the material?
To manage layout of components within a frame
To select from a range of values and be buddied with a related control
To trigger actions like a button
To group mutually exclusive options
Select all controls from the list that accept user-typed text input.
JLabel
JTextField
JTextArea
JButton
What is the primary function of a JComboBox in a Swing application?
To show static text information
To create a button that performs an action
To allow users to input multiple lines of text
To display a list of items for selection
