//RIBBONS - to set the right icon size
if(item.getIcon() != null && item.getIcon() instanceof ImageIcon) {
ImageIcon ico = (ImageIcon)item.getIcon();
ImageWrapperResizableIcon newIco = ImageWrapperResizableIcon.getIcon(ico.getImage(), new Dimension(ico.getIconWidth(), ico.getIconHeight()));
newIco.setPreferredSize(new Dimension(16, 16));
newIco.addAsynchronousLoadListener(new AsynchronousLoadListener() {
public void completed(boolean success) {
item.repaint();
}
});
item.setIcon(newIco);