I18n.COMMON.getString("AppView.HelpBand"),
new EmptyResizableIcon(22));
helpBand.setResizePolicies(
CoreRibbonResizePolicies.getCorePoliciesRestrictive(helpBand));
JCommandButton cbtnHelp = new JCommandButton(
I18n.COMMON.getString("AppView.Help"),
ViewHelpers.createResizableIcon(new ImageIcon(getClass().getResource(
ViewHelpers.ICONS22 + "help.png"))));
cbtnHelp.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onHelp();
}
});
cbtnHelp.setActionKeyTip("H");
helpBand.addCommandButton(cbtnHelp, RibbonElementPriority.TOP);
JCommandButton cbtnAbout = new JCommandButton(
I18n.COMMON.getString("AppView.Help.About"),
ViewHelpers.createResizableIcon(new ImageIcon(getClass().getResource(
ViewHelpers.ICONS22 + "about.png"))));
cbtnAbout.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onAbout();
}
});
cbtnAbout.setActionKeyTip("A");
helpBand.addCommandButton(cbtnAbout, RibbonElementPriority.TOP);
return helpBand;
}