Question 5 3 pts Edit this Question Delete this Question 0 multiple_choice_quest
ID: 3859594 • Letter: Q
Question
Question 5 3 pts
Edit this Question Delete this Question
0 multiple_choice_question 790857
<font>(TCOs 1, 4, and 6) Every event object has the _____ method that returns the object that triggered the event.</font>
(TCOs 1, 4, and 6) Every event object has the _____ method that returns the object that triggered the event.
Move To... This element is a more accessible alternative to drag & drop reordering. Press Enter or Space to move this question.
Flag this Question
Question 6 3 pts
Edit this Question Delete this Question
0 multiple_choice_question 790860
<font>(TCOs 1, 4, and 6) Which statement is used to place the component lblMessage on a JPanel panel1?</font>
(TCOs 1, 4, and 6) Which statement is used to place the component lblMessage on a JPanel panel1?
Move To... This element is a more accessible alternative to drag & drop reordering. Press Enter or Space to move this question.
Flag this Question
Question 7 3 pts
Edit this Question Delete this Question
0 multiple_choice_question 790864
<font>(TCOs 1, 4, and 6) A JMenu component can contain one or more _____ components.</font>
(TCOs 1, 4, and 6) A JMenu component can contain one or more _____ components.
Move To... This element is a more accessible alternative to drag & drop reordering. Press Enter or Space to move this question.
Flag this Question
Question 8 3 pts
Edit this Question Delete this Question
0 multiple_choice_question 790866
<font>(TCOs 1, 4, and 6) JCheckBox supports multiple listeners for event handling. Which listener is NOT supported by JRadioButton?</font>
(TCOs 1, 4, and 6) JCheckBox supports multiple listeners for event handling. Which listener is NOT supported by JRadioButton?
getSource()Explanation / Answer
1-getSource()-It is an event object that contains a reference to the component that triggered the event.To extract the reference from the object use object.getSource();.
2-panel1.addComponent(lblMessage)- the addComponent(component) method is used to place the component on a jPanel.
3-jMenuItem- a jMenu bar has one jMenuBar and it contain Multiple jMenu Itmes that is multiple items can be placed in a jMenu.
4-WindowListner- The jRadioButton supports action listner for the action performed,ItemListner for the selected item ,ChangeListner for the change of state but does not use WindowListener rather it uses windowBuilder.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.