Log.log(Log.DEBUG,GUIUtilities.class,"Window " + name + ": desired geometry is " + desired); Log.log(Log.DEBUG,GUIUtilities.class,"Window " + name + ": setting geometry to " + required);
	public static void loadGeometry(Window win, String name)	{		// all this adjust_* crap is there to work around buggy		// Unix Java versions which don't put windows where you		// tell them to		int x, y, width, height, adjust_x, adjust_y, adjust_width,			adjust_height;		try		{			width = Integer.parseInt(jEdit.getProperty(name + ".width"));			height = Integer.parseInt(jEdit.getProperty(name + ".height"));		}		catch(NumberFormatException nf)		{			Dimension size = win.getSize();			width = size.width;			height = size.height;		}		try		{			x = Integer.parseInt(jEdit.getProperty(name + ".x"));			y = Integer.parseInt(jEdit.getProperty(name + ".y"));		}		catch(NumberFormatException nf)		{			Component parent = win.getParent();			if(parent == null)			{				Dimension screen = win.getToolkit().getScreenSize();				x = (screen.width - width) / 2;				y = (screen.height - height) / 2;			}			else			{				Rectangle bounds = parent.getBounds();				x = bounds.x + (bounds.width - width) / 2;				y = bounds.y + (bounds.height - height) / 2;			}		}		try		{			adjust_x = Integer.parseInt(jEdit.getProperty(name + ".dx"));			adjust_y = Integer.parseInt(jEdit.getProperty(name + ".dy"));			adjust_width = Integer.parseInt(jEdit.getProperty(name + ".d-width"));			adjust_height = Integer.parseInt(jEdit.getProperty(name + ".d-height"));		}		catch(NumberFormatException nf)		{			adjust_x = adjust_y = 0;			adjust_width = adjust_height = 0;		}		Rectangle desired = new Rectangle(x,y,width,height);		Rectangle required = new Rectangle(x - adjust_x,			y - adjust_y,width - adjust_width,			height - adjust_height);		Log.log(Log.DEBUG,GUIUtilities.class,"Window " + name			+ ": desired geometry is " + desired);		Log.log(Log.DEBUG,GUIUtilities.class,"Window " + name			+ ": setting geometry to " + required);		win.setBounds(required);		if(File.separatorChar == '/') // ie, Unix			new UnixWorkaround(win,name,desired,required);	}