I have a JPopupMenu
lets call it (aaa) inside it i have Jmenu(mmm)
,contain some JmenuItems(like b,c,d,k)
.
this popup menu shows at right click on the panel ,and on mouse over mmm menu the sub menu (b,c,d,k)
appear ,but if i goes down a little bit under the mmm menu ,the sub menu (b,c,d,k)
disappear ,how i can solve this to be more friendly ?can i make the sub menu (b,c,d,k)
appear with left mouse click over the mmm menu?
JPopupMenu aaa = new JPopupMenu();
JMenu mmm = new JMenu("mmm");
JMenuItem b = new JMenuItem("b");
JMenuItem c = new JMenuItem("c");
JMenuItem d = new JMenuItem("d");
JMenuItem k = new JMenuItem("k");
mmm.add(b);
mmm.add(c);
mmm.add(d);
mmm.add(k);
aaa.add(mmm);