src/solaris/classes/sun/awt/X11/XEmbedChildProxyPeer.java

Print this page

        

*** 85,94 **** --- 85,102 ---- public void paint(Graphics g) {} public void repaint(long tm, int x, int y, int width, int height) {} 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); } finally {