mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
icon rendering
This commit is contained in:
+3
-3
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user