Solved

The Variable Panel References a JPanel Object

Question 1

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:

verifed

Verified

Related Questions