setLayout(boxLayout); You still need to invoke the setLayout method on p1 to set the layout manager. Code that creates a Box layout panel. class BoxLayoutPanel ...
確定! 回上一頁