return createButton(text, ImageManager.getInstance().getImageIcon(imagePath));
}
public static JXStatusBar createStatusBar(JComponent comp) {
final JXStatusBar statusBar = new JXStatusBar();
statusBar.setUI(new MetalStatusBarUI());
statusBar.putClientProperty(BasicStatusBarUI.AUTO_ADD_SEPARATOR, false);
statusBar.setBackground(WidgetUtils.BG_COLOR_DARKEST);
final MatteBorder outerBorder = new MatteBorder(1, 0, 0, 0, WidgetUtils.BG_COLOR_LESS_DARK);
final EmptyBorder innerBorder = new EmptyBorder(2, 2, 2, 2);
statusBar.setBorder(new CompoundBorder(outerBorder, innerBorder));