wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Crazy behaviour of JMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Crazy behaviour of JMenu" Watch "Crazy behaviour of JMenu" New topic
Author

Crazy behaviour of JMenu

Karthikeyan Chandrasekaran
Greenhorn

Joined: Feb 10, 2006
Posts: 15
I am facing with a strange problem in JMenu.... I have a Swing application in which various menus are available. On selecting each menu item, different screens will be loaded.(through actionlistener). But when I try to select a particular menu item repeatedly, sometimes menu item which is ahed of currently selected menu item gets triggered and corrosponding screen gets loaded. So when I select a menu item, screen for adjacent menu item gets loaded. But this doen not happen frequently.

Note: different screens are loaded for each menu item in actionlistener code which is in Even Dispatcher Thread.

I was not facing the issue when I used JDK 1.4. Now I am using Java 5 and this issue happends without any code changes.

Please let me know how to solve the issue.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
without posting any code that shows the odd behaviour,
what type of response are you expecting?

guessing just wastes everyone's time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Crazy behaviour of JMenu
 
Similar Threads
Urgent Help: Game gets hanged on N70
FrameView only gets repainted when I resize the window
CardLayout
JFrame and JMenu
Menu Problems