Add 10px padding to tabs and PropertyDialog
This commit is contained in:
parent
2f350b5fe5
commit
2f2803b4a9
@ -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();
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user