It's really pleasure to switch again into www.javaranch.com after several days of hectic coding in EJBs. Now I'm currently working on java swings. I faced a problem where if I right click my mouse I could able to display popup menu using JPopupMenu and if I move my mouse I should get that displayed popup to be removed. I used MouseMotionAdapter for this and within the mouseMoved(MouseEvent e) what can I write the code, so that my task is fulfilled.
Thanks in advance, Narendranath.
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
I don't think that the JPopupMenu component works like that. If you have windows, press the right click button and move your mouse does it disappear? No so I don't think the components work like that. You could hide it or use another component... Check the Sun website!! It has useful resources on handy methods!