Swingコンポーネントの周りにスペースをつくるには


JPanel panel = new JPanel();
panel.setBorder(BorderFactory.createEmptyBorder?(10, 10, 10, 10));