return newToolButton(action, ToolButtonStyle.PUSH, labelType);
}
public static ToolButton newToolButton(final String action,
final ToolButtonStyle style, final ButtonLabelType labelType) {
final ToolButtonBindings bindings = new ToolButtonBindings(
getActionMap().get(action));
final ToolButton toolButton = bindings.getTarget();
toolButton.setStyle(style);
bindings.setLabelType(labelType);
bindings.bind();
return toolButton;
}