return newButton(action, ButtonLabelType.TEXT_ON_RIGHT);
}
public static Button newButton(final String action,
final ButtonLabelType labelType) {
final ButtonBindings bindings = new ButtonBindings(getActionMap().get(
action));
final Button button = (Button) bindings.getTarget(); // FIXME
bindings.setLabelType(labelType);
bindings.bind();
return button;
}