private void xmlWriteSplit(SplitContainer split, PrintWriter out)
			throws IOException {
		double location;
		if (split.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
			location = split.getLeftComponent().getWidth()
					/ (double) (split.getWidth() - split.getDividerSize()); // 2006/09/25
		} else {
			location = split.getTopComponent().getHeight()
					/ (double) (split.getHeight() - split.getDividerSize());
		}
		out.println("<Split orientation=\"" + split.getOrientation()
				+ "\" location=\"" + location + "\">");
		xmlWriteComponent(split.getLeftComponent(), out);
		xmlWriteComponent(split.getRightComponent(), out);
		out.println("</Split>");
	}