You could simply use the default layout manager FlowLayout for the JPanel contentPane . This will respect the components preferred size:.
確定! 回上一頁