Multiple Choice
Which of the following adds a border to the following panel? JPanel panel = new JPanel() ;
A) panel.addEtchedBorder() ;
B) panel.addBorder(new EtchedBorder() ) ;
C) panel.add(new EtchedBorder() ) ;
D) panel.setBorder(new EtchedBorder() ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: What type of event does the JSlider
Q5: Suppose a JPanel with a BorderLayout manager
Q6: Suppose a JPanel with a BorderLayout manager
Q7: If the makeMenuItem method is called four
Q8: What is the best way to start
Q9: What is wrong with the following code?
Q11: What can be determined about obj from
Q12: Which layout manager uses a grid, but
Q14: Which layout manager allows you to add
Q44: Which of the following statements is correct?<br>A)new