To set the layout manager of a JPanel to BoxLayout with vertical alignment, do this: JPanel panel = new JPanel(); panel.setLayout( new BoxLayout( panel, ...
確定! 回上一頁