I was trying to add two JMenus to a parent JMenu, when I saw a strange problem :
StateListener stL = new StateListener();            
SpeedListener spL = new VitesseListener();
animation.add(speed);
animation.add(state);
 //Add of JRadiobuttons (st1, st2 and st3) to JMenu : state
 state.add(st1); 
 state.add(st2);
 state.add(st3);
  //Add of JRadiobuttons to ButtonGroup : bG1
  bG1.add(st1);
  bG1.add(st2);
  bG1.add(st3);
   //Setting a default selected button
   st2.setSelected(true);
    //Add of an action listener to JRadioButtons (StateListener : stL)
    st1.addActionListener(stL);
    st2.addActionListener(stL);
    st3.addActionListener(stL);
 //Same code, with speed this time
 speed.add(sp1);
 speed.add(sp2); [...]
This code works great, but when I switch the adding of speed and state to animation, as I do in the code below, the code has a kind of "bug". Indeed, when I pass my mouse over the "speed menu", everything is stuck and I can't do anything (close the program in clean way included) :
[...] animation.add(stae);
animation.add(speed); [...]  
Thanks for your help and sorry for my shitty (I don't even know if I can use this word without being vulgar ^^) english.
 
     
     
    