Question 7 (5 points) What kind of object is used group radio buttons? Question
ID: 3817593 • Letter: Q
Question
Question 7 (5 points)
What kind of object is used group radio buttons?
Question 7 options:
JButtonGroup
Group
ButtonGroup
ContainerGroup
Save
Question 8 (5 points)
Which of the following method calls is used to prevent the user from modifying a text field tf?
Question 8 options:
tf.setChangable(false);
tf.preventMdification()
tf.setUneditable()
tf.setEditable(false);
Save
Question 9 (5 points)
When you want to allow the user to select only one of several choices, which you use?
Question 9 options:
Radio buttons
Ordinary buttons
Text fields
Check boxes
Save
Question 10 (5 points)
What is the benefit of using layout managers?
Question 10 options:
It reduces the amount of code needed
It defines how components of a window should be arranged when it is resized
It makes the program run much faster
It reduces the amount of memory necessary to store the window components
Save
Question 11 (5 points)
Which of the following true about source and listener objects?
Question 11 options:
Both objects must be of the same type
They must always be different objects
They can be the same object
The objects must always be of different types
Save
Question 12 (5 points)
Which of the following statements is incorrect?
Question 12 options:
A listener may listen for multiple sources
The listener object must be registered by the source object
A source object can only have one listener object
The listener object's class must implement the corresponding event-listener interface
Save
JButtonGroup
Group
ButtonGroup
ContainerGroup
Explanation / Answer
Question 7 (5 points)
What kind of object is used group radio buttons?
Question 7 Answer:
ButtonGroup
Explanation:
The object of ButtonGroup allows that the user can select only one button at a time.
Question 8 (5 points)
Which of the following method calls is used to prevent the user from modifying a text field tf?
Question 8 Answer:
tf.setEditable(false);
Explanation:
User can edit the text if the value is set to true. As it is set to false it will prevent the user from editing the text in the textbox.
Question 9 (5 points)
When you want to allow the user to select only one of several choices, which you use?
Question 9 Answer:
Radio buttons
Explanation :
In a group of radio buttons, the user can select only one button.
If he selects one button, the remaining buttons in the group are deselected.
Question 10 (5 points)
What is the benefit of using layout managers?
Question 10 Answer:
It defines how components of a window should be arranged when it is resized
Explanation:
Components in a particular manner are arranged by the layout manager.
Question 11 (5 points)
Which of the following true about source and listener objects?
Question 11 Answer:
They can be the same object
Explanation:
You can create an object of a class and the class should be implementing the listener class. So both the objects can be of the same type.
Question 12 (5 points)
Which of the following statements is incorrect?
Question 12 Answer:
The listener object's class must implement the corresponding event-listener interface
Explanation:
You can create an object of a class and the class should be implementing the listener class.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.