Add 10px padding to tabs and PropertyDialog

This commit is contained in:
Fabian Becker 2015-12-17 13:57:01 +01:00
parent 2f350b5fe5
commit 2f2803b4a9
3 changed files with 4 additions and 3 deletions

View File

@ -170,9 +170,6 @@ public class OptimizationEditorPanel extends JPanel implements ItemListener {
((JDialog) container).dispose(); ((JDialog) container).dispose();
}); });
// 10px padding
setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
setLayout(new GridBagLayout()); setLayout(new GridBagLayout());
GridBagConstraints gbConstraints = new GridBagConstraints(); GridBagConstraints gbConstraints = new GridBagConstraints();

View File

@ -26,6 +26,8 @@ public class PropertyDialog extends JDialog {
setLayout(new BorderLayout()); setLayout(new BorderLayout());
propertyEditor = editor; propertyEditor = editor;
editorComponent = editor.getCustomEditor(); editorComponent = editor.getCustomEditor();
((JPanel)getContentPane()).setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
add(editorComponent, BorderLayout.CENTER); add(editorComponent, BorderLayout.CENTER);
pack(); pack();

View File

@ -59,6 +59,8 @@ public class TabbedFrameMaker implements Serializable, PanelMaker, InterfaceNoti
for (PanelMaker element : pmContainer) { for (PanelMaker element : pmContainer) {
JComponent panel = element.makePanel(); JComponent panel = element.makePanel();
panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
if (element instanceof ModuleButtonPanelMaker) { if (element instanceof ModuleButtonPanelMaker) {
extToolBar.add(panel); extToolBar.add(panel);
butPanelMkr = (ModuleButtonPanelMaker) element; butPanelMkr = (ModuleButtonPanelMaker) element;