Here is an example of how to set the layout manager when creating the panel. JPanel p = new JPanel(new BorderLayout()); //PREFERRED!
確定! 回上一頁