Multiple Choice
What is wrong with the following message to create a BoxLayout for the JPanel jp?
Jp) setLayout(new BoxLayout(BoxLayout.X_AXIS) ) ;
A) X_AXIS is not a valid constant for BoxLayout, it should instead be HORIZONTAL
B) Aside from X_AXIS, the constructor also requires a Dimension to determine the size of the Box
C) Aside from X_AXIS, the constructor also needs a command regarding horizontal glue as in createHorizontalGlue( )
D) The BoxLayout constructor is lacking a reference to the container that the BoxLayout manager will govern
E) There is nothing wrong with it at all
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Draw the JFrame as you think it
Q10: Arranging components in a GUI container is
Q12: Assume a class Foo implements Comparable. Without
Q13: To take 2 borders and use one
Q15: A bad programming habit is to build
Q16: Write code to create a JPanel with
Q18: In black-box testing, the tester should already
Q19: It is easier to correct errors found
Q35: Any class can implement an interface, but
Q39: Once we have implemented the solution, we