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();
|
||||
});
|
||||
|
||||
// 10px padding
|
||||
setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
|
||||
|
||||
setLayout(new GridBagLayout());
|
||||
GridBagConstraints gbConstraints = new GridBagConstraints();
|
||||
|
||||
|
@ -26,6 +26,8 @@ public class PropertyDialog extends JDialog {
|
||||
setLayout(new BorderLayout());
|
||||
propertyEditor = editor;
|
||||
editorComponent = editor.getCustomEditor();
|
||||
|
||||
((JPanel)getContentPane()).setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
|
||||
add(editorComponent, BorderLayout.CENTER);
|
||||
|
||||
pack();
|
||||
|
@ -59,6 +59,8 @@ public class TabbedFrameMaker implements Serializable, PanelMaker, InterfaceNoti
|
||||
|
||||
for (PanelMaker element : pmContainer) {
|
||||
JComponent panel = element.makePanel();
|
||||
|
||||
panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
|
||||
if (element instanceof ModuleButtonPanelMaker) {
|
||||
extToolBar.add(panel);
|
||||
butPanelMkr = (ModuleButtonPanelMaker) element;
|
||||
|
Loading…
x
Reference in New Issue
Block a user