-
Bug
-
Resolution: Incomplete
-
P4
-
None
-
1.4.2
-
x86
-
windows_2000
Name: gm110360 Date: 04/21/2004
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
FULL OS VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Native Windows applications place context menus fully above or below the current cursor position. When the cursor is too close to the bottom of the screen for the entire menu to fit below it, the menu opens above the cursor. By contrast, when a JPopupMenu is shown too close to the bottom of the screen its position is automatically adjusted so that the bottom of the menu is at the bottom of the usable screen. Since Java/Swing is going to the trouble of adjusting the menu position, it would be nice if it did so in a manner that is consistent with the platform's standard behavior.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run any Swing application with a JPopupMenu
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Subclass JPopupMenu and override the show method to do the position adjustment in accordance with the standard Windows behavior.
(Incident Review ID: 207659)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
FULL OS VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Native Windows applications place context menus fully above or below the current cursor position. When the cursor is too close to the bottom of the screen for the entire menu to fit below it, the menu opens above the cursor. By contrast, when a JPopupMenu is shown too close to the bottom of the screen its position is automatically adjusted so that the bottom of the menu is at the bottom of the usable screen. Since Java/Swing is going to the trouble of adjusting the menu position, it would be nice if it did so in a manner that is consistent with the platform's standard behavior.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run any Swing application with a JPopupMenu
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Subclass JPopupMenu and override the show method to do the position adjustment in accordance with the standard Windows behavior.
(Incident Review ID: 207659)
======================================================================
- relates to
-
JDK-4245587 JPopupMenus are obscured by windows taskbar
- Closed