@Override protected void initializeContentPane() { setContentPane(new SForm(new SBorderLayout())); }
/** * Determine wether the contentPane shall be an SForm. The property is true by default. * @param contentPaneForm <code>true</code> if the contentPane shall be an SForm, <code>false</code> otherwise */ public void setFormContentPane(boolean contentPaneForm) { if (contentPane instanceof SForm && !contentPaneForm) { SPanel newPanel = new SPanel(); rebuildPanel(contentPane, newPanel); setContentPane(newPanel); } else if (!(contentPane instanceof SForm) && contentPaneForm) { SForm newPanel = new SForm(); rebuildPanel(contentPane, newPanel); setContentPane(newPanel); } }
layout.setVgap(40); form = new SForm(layout);