SvgBatikResizableIcon btnSVGIcon = SvgBatikResizableIcon.getSvgIcon(
btnIconResourceUrl, new Dimension(32, 32));
JCommandButton btn = new JCommandButton(
GlobalContext.getLocalizedMessage("pd.menu.new", "New"),
btnSVGIcon);
btn.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent e) {
loadDesign(ProcessDefinition.create());
}
});
band.addGalleryButton(btn, RibbonElementPriority.MEDIUM);