Multiple Choice
The variable panel references a JPanel object. The variable bGroup references a ButtonGroup object, which contains several button components. If you want to add the buttons to the panel:
A) use the statement, panel.add(bGroup) ;
B) use the statement, bGroup.add(panel) ;
C) use the statement, Panel panel = new Panel(bGroup) ;
D) add each button to panel one at a time, e.g. panel.add(button1) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q2: This layout manager arranges components in regions
Q3: To end an application, pass this as
Q4: The minimize button, maximize button, and close
Q5: To use the Color class, which is
Q6: What will be the result of executing
Q7: You would use this command at the
Q8: In a Swing application, you create a
Q10: In Swing, labels are created with this
Q11: A common technique for writing an event
Q41: A GUI program automatically stops executing when