JDK-4767478 : drop down list box displayed wrong in XP in non primary monitors
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.1_05
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2002-10-23
  • Updated: 2002-12-19
  • Resolved: 2002-11-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other Other Other
1.3.1_07 07Fixed 1.4.0_04Fixed 1.4.1_02Fixed 1.4.2Fixed
Description
test case is attached to bug
The zip file has a password of "password" to
prevent outlook from stripping the test batch file out. The runtest.cmd file
is in the bin directory.

Note that JDK 1.4.1 option works fine except if any part of the drop down
list box is over a monitor edge, then it loses its orientation. 

You will have to set the path to your JVM installation for 1.3.x and 1.4.x.
The runtest.cmd file has a usage.

To see the bug just center the app on any monitor other than the primary and
drop down the "Look in" ddlist box. It drops up on non-primary monitors. If
this box is too close to the top of the monitor you loose the ability to
scroll or see all the data. The same behavior happens any time the drop down
list box is over any screen border, even in the primary.


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.3.1_07 1.4.0_04 1.4.1_02 mantis FIXED IN: 1.3.1_07 1.4.0_04 1.4.1_02 mantis INTEGRATED IN: 1.3.1_07 1.4.0_04 1.4.1_02 mantis mantis-b08
24-08-2004

SUGGESTED FIX Name: azR10139 Date: 10/24/2002 ------- BasicComboPopup.java ------- *** /tmp/sccs._Uaq0u Thu Oct 24 14:54:43 2002 --- BasicComboPopup.java Thu Oct 24 14:39:16 2002 *************** *** 1068,1074 **** } Rectangle rect = new Rectangle(px,py,pw,ph); ! if (!SwingUtilities.isRectangleContainingRectangle(screenBounds, rect) && ph < screenBounds.height) { rect.y = -rect.height; } --- 1068,1074 ---- } Rectangle rect = new Rectangle(px,py,pw,ph); ! if (py+ph > screenBounds.y+screenBounds.height && ph < screenBounds.height) { rect.y = -rect.height; } ======================================================================
24-08-2004

EVALUATION Name: azR10139 Date: 10/24/2002 This bug is partialy fixed by fix for bug 4245587. If customer needs this fix to be integrated into the 1.3.1_* release they must escalate bug 4245587. The idea of suggested fix given here is to change orientation of the combobox popup only if popup overlaps bottom line of the desktop. This will solve the problem with the combobox popup orientation change near the desktop borders. ###@###.### 10/24/2002 ======================================================================
24-10-2002