int initialSize = currDimension;
if (initialSize < 0)
initialSize = currState.getPreferredIconSize();
JCommandButton button = new JCommandButton(name,
new EmptyResizableIcon(initialSize));
button.setHorizontalAlignment(SwingUtilities.LEFT);
button.setDisplayState(this.currState);
if (this.currState == CommandButtonDisplayState.FIT_TO_ICON)
button.updateCustomDimension(currDimension);