icon rendering

This commit is contained in:
bancika
2012-08-31 13:17:02 +00:00
parent 9ebfad7d05
commit 28f56693a9
@@ -37,15 +37,15 @@ class ComponentButtonFactory {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public static int MARGIN = 4; public static int MARGIN = 3;
public static JButton create(final IPlugInPort plugInPort, public static JButton create(final IPlugInPort plugInPort,
final ComponentType componentType, final JPopupMenu menu) { final ComponentType componentType, final JPopupMenu menu) {
JButton button = DropDownButtonFactory.createDropDownButton( JButton button = DropDownButtonFactory.createDropDownButton(
componentType.getIcon(), menu); componentType.getIcon(), menu);
button.setBorder(BorderFactory.createEmptyBorder(MARGIN, MARGIN, button.setBorder(BorderFactory.createEmptyBorder(MARGIN + 1,
MARGIN, MARGIN)); MARGIN + 1, MARGIN, MARGIN));
// mainButton.setBorder(BorderFactory.createEmptyBorder()); // mainButton.setBorder(BorderFactory.createEmptyBorder());
// dropDownButton.setBorder(BorderFactory.createEmptyBorder()); // dropDownButton.setBorder(BorderFactory.createEmptyBorder());