SvgBatikResizableIcon btnSVGIcon = SvgBatikResizableIcon.getSvgIcon(
btnIconResourceUrl, new Dimension(32, 32));
JCommandButton btn = new JCommandButton(
GlobalContext.getLocalizedMessage("pd.roles.label", "Role Picker"),
btnSVGIcon);
btn.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent e) {
viewRoleResolutionDlg();
}
});
band.addGalleryButton(btn, RibbonElementPriority.MEDIUM);