-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0, 1.4.1, 1.4.2, 5.0
-
b25
-
x86
-
linux, solaris_9, windows_98, windows_nt, windows_2000, windows_xp
A JButton is set up to show a JPopupMenu when it is clicked (on ActionPerformed). The button also has a MouseListener that listens for mousePressed events. It checks these mouse events for the click count and takes action when the click count is 2 (In the example, no action is taken, the demo simply prints out the click count). In 1.5.0, it seems that showing the popup menu prevents the click count from getting to 2.
To reproduce, compile and run the attached demo.
Double click on the button.
In 1.4.2, one can easily double click on the button and get a click count of 2 printed to the console.
In 1.5.0, one can no longer double click to get a click count of 2.
This is on Windows NT 4, SP 6.
------
Note, the attached demo is a simple test case showing the problem. It was first discovered with internal frames in the Motif look and feel. In 1.5.0, double clicking on the system button (upper left) fails to close an internal frame. When an internal frame is iconified, double clicking on that icon also fails to restore the internal frame. This can be seen in the SwingSet2 demo.
- duplicates
-
JDK-4799336 REGRESSION: JPopupMenu focus bug, inconsistent behaviour
- Closed
-
JDK-4847161 REGRESSION: RegTest-cte CTE_REGTEST/Generic/4683300/Test4683300.java failed
- Closed
-
JDK-4903520 REGRESSION: Focus problem when custom JPopupMenu is shown
- Closed
-
JDK-4905188 REGRESSION: SwingSet2 Demo Internal frames are not activated
- Closed
-
JDK-4915473 Focus does not move from one to another internalFrame when pulldown menu is open
- Closed
-
JDK-4750270 1.4.0 REGRESSION: Action/Mouse event was lost after right-click popup menu
- Closed
- relates to
-
JDK-6646781 Nimbus L&F : Menu stays open when continously clicked on internal frame icon on Windows & nimbus L&F
- Closed
-
JDK-5028014 REGRESSION: CTE_REGTEST/Generic/4683300/Test4683300.java fails
- Closed
-
JDK-6770445 Unable to transfer focus with single click when the combobox popup is visible
- Closed