private PageScriptConsole createScriptConsole() {
			PageScriptConsole sc = new PageScriptConsole();
			sc.setPage(page);
			if (uid != null) {
				sc.setUid(uid);
				uid = null;
			}
			connect(sc);
			if (borderType != null) {
				sc.setBorderType(borderType);
				borderType = null;
			}
			else {
				sc.setBorderType(null);
			}
			sc.setChangable(page.isEditable());
			if (width > 0 && height > 0) {
				sc.setPreferredSize(new Dimension((int) width, (int) height));
				width = height = 0;
			}
			return sc;
		}