Point location = win.getLocation(); Dimension size = win.getSize(); jEdit.setProperty(name + ".x",String.valueOf(location.x)); jEdit.setProperty(name + ".y",String.valueOf(location.y)); jEdit.setProperty(name + ".width",String.valueOf(size.width)); jEdit.setProperty(name + ".height",String.valueOf(size.height));
Rectangle bounds = win.getBounds(); jEdit.setProperty(name + ".x",String.valueOf(bounds.x)); jEdit.setProperty(name + ".y",String.valueOf(bounds.y)); jEdit.setProperty(name + ".width",String.valueOf(bounds.width)); jEdit.setProperty(name + ".height",String.valueOf(bounds.height));
	public static void saveGeometry(Window win, String name)	{		Point location = win.getLocation();		Dimension size = win.getSize();		jEdit.setProperty(name + ".x",String.valueOf(location.x));		jEdit.setProperty(name + ".y",String.valueOf(location.y));		jEdit.setProperty(name + ".width",String.valueOf(size.width));		jEdit.setProperty(name + ".height",String.valueOf(size.height));	}