@Override
public void mousePressed(MouseEvent e) {
if (!((JButton) e.getSource()).isEnabled()) return;
MyJPopupMenu popup = new MyJPopupMenu();
mediator.addStampMenu(popup);
popup.show(e.getComponent(), e.getX(), e.getY());
}
});
JButton windowButton = new JButton();
windowButton.setBorderPainted(false);