|
|
@ -135,26 +135,24 @@ public class Designer extends BaseDesigner { |
|
|
|
public UILargeToolbar createLargeToolbar() { |
|
|
|
public UILargeToolbar createLargeToolbar() { |
|
|
|
UILargeToolbar largeToolbar = super.createLargeToolbar(); |
|
|
|
UILargeToolbar largeToolbar = super.createLargeToolbar(); |
|
|
|
largeToolbar.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 4)); |
|
|
|
largeToolbar.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 4)); |
|
|
|
JPanel templeJpanel = new JPanel() { |
|
|
|
largeToolbar.add(new JPanel() { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
Dimension dim = super.getPreferredSize(); |
|
|
|
Dimension dim = super.getPreferredSize(); |
|
|
|
dim.width = 1; |
|
|
|
dim.width = 1; |
|
|
|
return dim; |
|
|
|
return dim; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}); |
|
|
|
templeJpanel.setBackground(Color.WHITE); |
|
|
|
|
|
|
|
largeToolbar.add(templeJpanel); |
|
|
|
|
|
|
|
createRunButton(largeToolbar); |
|
|
|
createRunButton(largeToolbar); |
|
|
|
largeToolbar.add(run); |
|
|
|
largeToolbar.add(run); |
|
|
|
templeJpanel = new JPanel() { |
|
|
|
run.setBackground(UIConstants.TREE_BACKGROUND); |
|
|
|
|
|
|
|
largeToolbar.add(new JPanel() { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
Dimension dim = super.getPreferredSize(); |
|
|
|
Dimension dim = super.getPreferredSize(); |
|
|
|
dim.width = GAP; |
|
|
|
dim.width = GAP; |
|
|
|
return dim; |
|
|
|
return dim; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}); |
|
|
|
templeJpanel.setBackground(Color.WHITE); |
|
|
|
largeToolbar.addSeparator(new Dimension(2, 42)); |
|
|
|
largeToolbar.add(templeJpanel); |
|
|
|
|
|
|
|
largeToolbar.setBorder(new MatteBorder(new Insets(0, 0, 1, 0), UIConstants.LINE_COLOR)); |
|
|
|
largeToolbar.setBorder(new MatteBorder(new Insets(0, 0, 1, 0), UIConstants.LINE_COLOR)); |
|
|
|
return largeToolbar; |
|
|
|
return largeToolbar; |
|
|
|
} |
|
|
|
} |
|
|
|