GraphicsEnvironment.getMaximumWindowBounds() returns wrong horizontal size in dual screen environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
JOSM |
Unknown
|
Critical
|
|||
openjdk-7 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
GraphicsEnviron
Running the attached program on my system returns
thue@Thue-
java.awt.
So GraphicsEnviron
I have a fairly standard dual-screen setup, with the left screen 1600 wide and the right screen 1920 wide. Java is trying to open the Window on the right screen. The width of 255 is very probably 1920-1600-65=255, where 65 pixels is the width of the unity menu as measured via a screenshot in GIMP.
I encountered the problem while trying to run the April 22 git version of FreeCol. The example code below is snipped from there.
Both Java 6 and Java 7 have the problem.
Regards, Thue
-------
import java.awt.
import java.awt.Rectangle;
class test {
public static void main(String[] args) {
}
public static void determineWindow
final GraphicsEnvironment lge
= GraphicsEnviron
Rectangle bounds = lge.getMaximumW
}
}
affects: | qtwebkit-opensource-src (Ubuntu) → openjdk-6 (Ubuntu) |
affects: | openjdk-6 (Ubuntu) → openjdk-7 (Ubuntu) |
Changed in josm: | |
importance: | Unknown → Critical |
Status changed to 'Confirmed' because the bug affects multiple users.