--- old/src/solaris/classes/sun/awt/X11/XEmbedChildProxyPeer.java 2010-09-24 09:45:32.388000772 -0400 +++ new/src/solaris/classes/sun/awt/X11/XEmbedChildProxyPeer.java 2010-09-24 09:45:32.083002453 -0400 @@ -87,6 +87,14 @@ public void print(Graphics g) {} public void setBounds(int x, int y, int width, int height, int op) { // Unimplemeneted: Check for min/max hints for non-resizable + + /* X does not allow setting heights or widths to 0: this will cause a BadValue + * error. Lets set them to something close enough */ + if (width <= 0) + width = 1; + if (height <= 0) + height = 1; + XToolkit.awtLock(); try { XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), handle, x, y, width, height);