The event mouseclicked
for menu item in swing does not work for me. I changed it to mousepressed
and it works for me ... it's practically the same, but I wanted to know why this does not work in a menu item.
EDITED: the code was generated automatically by graphical interface. I decided to simply go for using ActionPerformed for all the events ..