CommandButtonKind commandButtonKind, int fontSize) {
ResizableIcon mainPasteIcon = SvgBatikResizableIcon.getSvgIcon(
TestCommandButtons.class.getClassLoader().getResource(
"test/svg/edit-paste.svg"), new Dimension(32, 32));
JCommandButton mainButton = new JCommandButton(text, mainPasteIcon);
mainButton.setDisabledIcon(new FilteredResizableIcon(mainPasteIcon,
new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
null)));
// mainButton.setMnemonic('P');
mainButton.setExtraText("Extra for " + text.toLowerCase());
mainButton.addActionListener(new ActionListener() {