JComponent () { if (myPanel == null) { myPanel = new IntentionSettingsPanel(); } JPanel component = myPanel.getComponent(); component.setPreferredSize(JBUI.size(800, 600)); component.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); return component; }