例如borderlayout在north中放入一個panel,panel的高度可以通過這樣實現:panel.setPreferredSize(new Dimension(0, 100));這樣就設定了一個高度為100的 ...
確定! 回上一頁