-
Bug
-
Resolution: Unresolved
-
P5
-
6, 12
-
x86
-
linux
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b100)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b100, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Ubuntu 6.06:
Linux moroni 2.6.15-27-686 #1 SMP PREEMPT Sat Sep 16 02:13:27 UTC 2006 i686 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
Dual-monitor display. This is a laptop system with a Xinerama dual-monitor configuration. The desktop is composed of both the laptop's LCD and an external CRT monitor.
A DESCRIPTION OF THE PROBLEM :
The new splash screen feature (invoked by using the -splash argument when executing the java command) doesn't display the splash screen image in the center of the primary screen. Instead the image is split between all monitor screens.
The splash screen should be positioned exactly the same way AWT Frames are positioned with the following code:
Frame f = new Frame();
f.setSize(500, 500);
f.setLocationRelativeTo(null); // centers the frame in the PRIMARY screen
This code will center the frame in the middle of the PRIMARY screen (with JDK6). The spash screen feature should be consistent with this positioning.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java -splash /path/to/splash.png
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The splash screen should be positioned in the center of the primary screen (not split between all screens).
ACTUAL -
The splash screen was positioned in the center of the virtual desktop (which spans across all physical monitors). This splits the splash screen across two or more monitors.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Execute this code with JDK6:
Frame f = new Frame();
f.setSize(500, 500);
f.setLocationRelativeTo(null); // centers the frame in the PRIMARY screen
Notice that the frame is centered in the primary screen (as expected). The splash screen does not do this.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Don't use the built-in splash screen feature of JRE6.
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b100)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b100, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Ubuntu 6.06:
Linux moroni 2.6.15-27-686 #1 SMP PREEMPT Sat Sep 16 02:13:27 UTC 2006 i686 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
Dual-monitor display. This is a laptop system with a Xinerama dual-monitor configuration. The desktop is composed of both the laptop's LCD and an external CRT monitor.
A DESCRIPTION OF THE PROBLEM :
The new splash screen feature (invoked by using the -splash argument when executing the java command) doesn't display the splash screen image in the center of the primary screen. Instead the image is split between all monitor screens.
The splash screen should be positioned exactly the same way AWT Frames are positioned with the following code:
Frame f = new Frame();
f.setSize(500, 500);
f.setLocationRelativeTo(null); // centers the frame in the PRIMARY screen
This code will center the frame in the middle of the PRIMARY screen (with JDK6). The spash screen feature should be consistent with this positioning.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java -splash /path/to/splash.png
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The splash screen should be positioned in the center of the primary screen (not split between all screens).
ACTUAL -
The splash screen was positioned in the center of the virtual desktop (which spans across all physical monitors). This splits the splash screen across two or more monitors.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Execute this code with JDK6:
Frame f = new Frame();
f.setSize(500, 500);
f.setLocationRelativeTo(null); // centers the frame in the PRIMARY screen
Notice that the frame is centered in the primary screen (as expected). The splash screen does not do this.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Don't use the built-in splash screen feature of JRE6.