-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0, 1.3.0_02, 1.4.0
-
generic, x86
-
generic, windows_98, windows_2000
Name: krT82822 Date: 02/13/2000
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
In multiscreen applications, for any JComboBox that is displayed on a monitor
other than the upper left, the menu always "pops up" above the box instead of
dropping down, regardless of where on the screen the box is located. Thus, if
the JComboBox appears near the top of the screen, the menu nonetheless pops
upwards and most of it is unusable.
The problem arises in the method
javax.swing.plaf.basic.BasicComboPopup.computePopupBounds( ). A check is
made whether a dropped down list would fit inside the screen, and if it doesn't
fit, the menu pops upward. The key line here is:
Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();
This returns only the size of the top left monitor, so it's impossible to get
the list to drop down if it's on any other screen. (This behavior has been
observed on Windows 2000, Windows NT, and Windows 98.)
-------------------------
13 Feb 2000, eval1127@eng -- see also:
http://search.java.sun.com/query.html?qt=+%2B%2Bclasses_awt+%2Bmulti-screen&col=obug&category=&state=&query=%2Bclasses_awt+%2Bmulti-screen
http://developer.java.sun.com/developer/bugParade/bugs/4265771.html
http://developer.java.sun.com/developer/bugParade/bugs/4272736.html
(Review ID: 101146)
======================================================================
Name: rmT116609 Date: 02/13/2001
version 1.3.0
To reproduce this problem. Just create a program with a combo-box and run it
in the secondary monitor. You'll notice that the combo boxes popups are
painted upwards and not downwards. Sometimes I found that the popup is painted
under the frame title bar. Is there anything I can do to make the combo box
popups paint downwards?
I am using jdk1.3 on a Win 2000 platform using a matrox millennium pci graphics card
as my secondary video card and a nVidia Riva model 64 as my primary video card
both connected to a p3 1000mHz computer
(Review ID: 116897)
======================================================================
A similar problem occurs with Swing menus. After dragging SwingSet2 onto a secondary monitor, menus in the menubar unnecessarily appear outside of the JFrame, forcing them to be heavyweight for no reason.
brent.christian@eng 2001-05-07
- duplicates
-
JDK-4273820 JComboxBox Pulldown displays upwards on Second Display (win2000)
-
- Closed
-
-
JDK-4392951 JComboBox pops up not down on Windows 2000 with multi monitors.
-
- Closed
-
-
JDK-4416604 ComboBox drops down in the wrong place on multiscreen system
-
- Closed
-
-
JDK-4482979 Menus, tooltips and comboboxs pop up wrong on multi-headed machines
-
- Resolved
-