< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java
Print this page
@@ -78,13 +78,11 @@
assert SunToolkit.isDispatchThreadForAppContext(this);
pack();
Dimension size = getSize();
- // TODO: When 6356322 is fixed we should get screen bounds in
- // this way: eframe.getGraphicsConfiguration().getBounds().
- Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();
+ Rectangle scrSize = getGraphicsConfiguration().getBounds();
if (corner.x < scrSize.width/2 && corner.y < scrSize.height/2) { // 1st square
setLocation(corner.x + indent, corner.y + indent);
} else if (corner.x >= scrSize.width/2 && corner.y < scrSize.height/2) { // 2nd square
< prev index next >