Question 10.10. (TCOs 1, 4, and 6) Which method returns false if the check box c
ID: 3864633 • Letter: Q
Question
Question 10.10. (TCOs 1, 4, and 6) Which method returns false if the check box chkOne has not been selected by the user? (Points : 3)
A.chkOne.Selected()
B. chkOne.Selected(true)
C. chkOne.isSelected()
D. chkOne.isSelected(true)
A. JLayout
B. JPanel
C. FlowLayout
D. GridLayout
B. You can use an icon on JRadioButton.
C. Multiple radio buttons can be selected within a ButtonGroup.
D. All of the methods in JRadioButton are also in JButton. (TCOs 1, 4, and 6) Complex layouts are often created in Java GUIs by using multiple _____ components. (Points : 3)
A. JLayout
B. JPanel
C. FlowLayout
D. GridLayout
Explanation / Answer
Hi there,
Here I am providing you the answer along with the question of that particular answer for your clear understanding.Hope you dont mind.
Question 10.10. (TCOs 1, 4, and 6) Which method returns false if the check box chkOne has not been selected by the user? (Points : 3)
A.chkOne.Selected()
B. chkOne.Selected(true)
C. chkOne.isSelected()
D. chkOne.isSelected(true)
The answer for the above question could be either A or C.Because Option B,D are shown as setting the values to true,Whereas Options A,C are checking for the condition of the checkbox whether it has been selected or not.
If the user has written a custom method as Selected() or isSelected() then the answer can be A or C.
(TCOs 1, 4, and 6) Which of the following statements is false? (Points : 3)
A. All the methods in JRadioButton are inherited from javax.swing.AbstractButton.
B. You can use an icon on JRadioButton.
C. Multiple radio buttons can be selected within a ButtonGroup.
D. All of the methods in JRadioButton are also in JButton.
The answer for the above question is A and D.
Option A because the methods in JRadioButton are not only inherited from javax.swing.AbstractButton but also from other classes/interfaces like
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
Option D because the methods that are inherited from javax.swing.JToggleButton by JRadioButton are not present in JButton.
Complex layouts are often created in Java GUIs by using multiple _____ components. (Points : 3)
A. JLayout
B. JPanel
C. FlowLayout
D. GridLayout
In this question we can go for JPanel grouping the components into one or more JPanels to simplify layout as each JPanel might use a different layout manager.
If we want to align components in a sequence as per our requirement then we can go for either FlowLayout or GridLayout.
I expect that this answer helped you.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.