• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing menus not going away after actionPerformed()

 
Lola Slade
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working with Swing for the first time and I'm having a problem with the menus not "going away" altogether after the user clicks on them which calls an actionListener that in turn calls JOptionPane.showMessageDialog(). Part of the JMenu remains visible until the next time a JMenu is clicked.
Has anyone else had this problem and/or solved it?
Thank you in advance,
Lola Slade
 
Aruna Devi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Lola,
yes, we have encountered this problem quite often and the cause we found out was the jre used during runtime, would not be jre1.3 but instead a lower version. Hence ensure that the path variable points to and picks up the jre1.3 version.
Swing components work fine with jre1.3 and this problem occurs with lower jre versions.
You can check out which jre you are using by typing in the DOS command prompt "which jre". Also you can try "which java"
Regards,
Aruna
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!