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.