--- old/src/macosx/classes/sun/lwawt/LWWindowPeer.java 2014-04-15 16:17:43.000000000 +0400 +++ new/src/macosx/classes/sun/lwawt/LWWindowPeer.java 2014-04-15 16:17:43.000000000 +0400 @@ -536,7 +536,16 @@ @Override public void setMaximizedBounds(Rectangle bounds) { - // TODO: not implemented + if (bounds == null) { + platformWindow.setMaximizedBounds(-1, -1, -1, -1); + } else { + platformWindow.setMaximizedBounds( + bounds.x == Integer.MAX_VALUE ? -1 : bounds.x, + bounds.y == Integer.MAX_VALUE ? -1 : bounds.y, + bounds.width == Integer.MAX_VALUE ? -1 : bounds.width, + bounds.height == Integer.MAX_VALUE ? -1 : bounds.height + ); + } } @Override