United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7141296 [macosx] Mouse Wheel Turn closes combobox popup
JDK-7141296 : [macosx] Mouse Wheel Turn closes combobox popup

Details
Type:
Bug
Submit Date:
2012-01-31
Status:
Closed
Updated Date:
2012-05-11
Project Name:
JDK
Resolved Date:
2012-03-16
Component:
client-libs
OS:
os_x
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b13)

Related Reports
Backport:

Sub Tasks

Description
Steps to reproduce:
1. Run any swing application with combobox
2. Click on combobox to show popup
3. Mouse wheel on it.
Popup will close unexpectedly.

Expected results:
Selection should change

                                    

Comments
EVALUATION

Reproducible, for some reason we get two MouseWheelEvents.
The second one is targeted for the window and BasicPopupMenu.MouseGrabber.inInPopup() returns false and closes the popup.
                                     
2012-02-06
EVALUATION

It is actually normal to get the mouseWheel event on the window
in case the scrollBar is invisible. 
When JScrollPane can't scroll it doesn't consume the mouseWheel event
and the Swing popup is closed on every other platform.

Another serious problem is found - 
when the scrollBar is visible it is impossible to scroll it
with the single turn of the wheel.
It gets scrolled only if you rotate the wheel fast enough.
                                     
2012-02-10



Hardware and Software, Engineered to Work Together