I'm trying to show a pop-up window when the user clicks on a JMenuItem
.
I've got the following piece of code:
menuAnular = new JMenuItem(w.translate("ETI_ANULAR"),imageAnular);
menuAnular.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
JDialog yesNo = new JDialog();
yesNo.setVisible(true);
}
});
Sadly, with this lines nothing is showed up. I've tried several ways to do it but I can't see nothing displayed.