void setBounds(int x, int y, int width, int height) { /* * Feature in Motif. Motif will not allow a window * to have a zero width or zero height. The fix is * to ensure these values are never zero. */ int newWidth = Math.max(width, 1), newHeight = Math.max(height, 1); OS.XtConfigureWidget(handle, x, y, newWidth, newHeight, 0); }