Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

11. (TCO 3) FlowLayout(Points : 6) is a layout manager that organizes components

ID: 3661134 • Letter: 1

Question

11.(TCO 3) FlowLayout(Points : 6) is a layout manager that organizes components left to right, top to bottom.
displays only the last component added to each of its areas.
places components around the edges of the display only.
cannot be used in a JPanel.



12.(TCO 4) What Java package contains the definitions of the Java event listener interfaces?(Points : 6) java.events
javax.GUI.events
java.event.listener
java.awt.event


13.(TCO 4) The following code registers an event handler object with two different event sources. When one of the buttons is clicked, how does the event handler code determine which button caused the event?

JButton b1 = new JButton( 11.(TCO 3) FlowLayout(Points : 6) is a layout manager that organizes components left to right, top to bottom.
displays only the last component added to each of its areas.
places components around the edges of the display only.
cannot be used in a JPanel.


Explanation / Answer

places components around the edges of the display only. java.awt.event Use the getSource method on the event object to get a reference to the source of the event and compare that reference with b1 and b2. None of the above. setSelected JTextArea display = new JTextArea(20, 20);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote