Question: Which of the following is the correct syntax for adding a JButton named b1 to a Container named con when using CardLayout? a. Con.add(b1); b.
Which of the following is the correct syntax for adding a JButton named b1 to a Container named con when using CardLayout?
a. Con.add(b1);
b. Con.add("b1");
c. Con.add("Options", b1);
d. None of the above
Step by Step Solution
3.24 Rating (156 Votes )
There are 3 Steps involved in it
c C... View full answer
Get step-by-step solutions from verified subject matter experts
