< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java
Print this page
*** 78,90 ****
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();
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
--- 78,88 ----
assert SunToolkit.isDispatchThreadForAppContext(this);
pack();
Dimension size = getSize();
! 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 >