please answer with A B C or D 3) Given a Frame object named frame with anager, a
ID: 3551332 • Letter: P
Question
please answer with A B C or D
3) Given a Frame object named frame with anager, and a JPanel object named panel with a default layout 11. TCO a default layout panel add (button1) panel add(button2); fra add(panel, BorderLayout.NORTH), (Points 6) button1 would be displayed at the top of the window with button 2 beneath it only button 1 would be displayed at the top of the window. O only button 2 would be displayed at the top of the window. O button1 and button2 would be displayed beside each other at the top of the window 12. (TCO 4) To handle the event generated by typing the enter key in a JTextField, you would need to Points :6) O extend ActionEvent O implement ActionListener handle TextEvent implement temEvent 13. (TCO 4) Which of the following are the correct steps for setting up event handling for a JCheckBox object? (Points 6) Create a class that represents the ItemListener event handler, and attach the JCheckBox to a JFrame object. Create a class that implements the ItemListener interface and register an object of that class with the JCheckBox variable ent an ActionEvent event handler and register it with the JCheckBox. mplem None of the above 14. (TCO 3) hat does the following Java code do? JTextField tf new JTextField (10 tf.setEditable(false); Points 6 O Makes the text field object editable by the use Creates a text field object which will initially display the number 10 Creates a text field object 10 columns wide. O All of the above 15. (TCO 3) A JTextArea (Points 60 O provides a bounding box used for the layout of JTextFields provides an area for manipulating multiple lines of text. O wraps lines by default. O provides scrollbars for JTextFields. anager, would hat the display look like given the following code?Explanation / Answer
D,A,C,C,B
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.