JButton button;
if(action instanceof GoBackAction || action instanceof GoForwardAction)
button = new HistoryPopupButton(action);
else
button = new NonFocusableButton(action);
// Remove label
button.setText(null);
// Add tooltip using the action's label and accelerator