import test.svg.transcoded.*;
public class TestCommandButtonsNoText extends TestCommandButtons {
@Override
protected JCommandButton createActionButton(CommandButtonDisplayState state) {
JCommandButton result = new JCommandButton(new edit_paste());
result.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
null)));
result.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println(stamp() + ": Main paste");
}
});
result
.setCommandButtonKind(JCommandButton.CommandButtonKind.ACTION_ONLY);
result.setDisplayState(state);
result.setFlat(false);
return result;
}