Mouse « Menu « Java Swing Q&A





1. What event would I need to be able to tell that the mouse was moved over a JMenuItem?    stackoverflow.com

I'd like to handle the case where the mouse goes over any of the JMenuItems. I don't need the user to click one of the JMenuItems; simply to move the mouse ...

2. assigning mouse actions forJPopupMenu    stackoverflow.com

I need small help from you. How can we perform action for mouse popup menu? I created a JPopupMenu with some menu items for mouse right button in my program. Suppose....

click the mouse ...

3. JMenuItem mouseClicked doesn't fire?    forums.netbeans.org

Hi all, first post on this board. This should be an easy issue to resolve for experienced Java-ites. I've been doing Java about 2 weeks, but C++ (Borland) for years. Using ...

6. JPopupMenu disappear after mouse exits...    coderanch.com

just a thought... attack it from the opposite side, instead of trying to find out when it exits the popup, include in the mouseListener code that triggers the popup a mouseEntered. theory is, when exiting the popup, a mouseEntered event should fire for the underlying panel/container/whatever, and the mouseEntered code would firstly check for the popup's visibility

7. Mouse click getting lost after popping up a non-modal JPopupMenu    coderanch.com

I'm having a rather strange problem with a large, Swing-based application on which I'm currently working. My next step is to try to reproduce the problem with a simple application, so I don't have that yet. I'm posting now because I just want to see if I'm missing something obvious. The application has a main JFrame on which they've added many ...