< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XPopupMenuPeer.java
Print this page
*** 213,223 ****
* function converted to global coordinates
* @param windowSize the desired size of menu's window
*/
protected Rectangle getWindowBounds(Point origin, Dimension windowSize) {
Rectangle globalBounds = new Rectangle(origin.x, origin.y, 0, 0);
! Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle res;
res = fitWindowRight(globalBounds, windowSize, screenSize);
if (res != null) {
return res;
}
--- 213,223 ----
* function converted to global coordinates
* @param windowSize the desired size of menu's window
*/
protected Rectangle getWindowBounds(Point origin, Dimension windowSize) {
Rectangle globalBounds = new Rectangle(origin.x, origin.y, 0, 0);
! Dimension screenSize = graphicsConfig.getBounds().getSize();
Rectangle res;
res = fitWindowRight(globalBounds, windowSize, screenSize);
if (res != null) {
return res;
}
< prev index next >