registerComponent(_layoutCtlPanel, "Layout", ViewInterface.BOTTOM_PANEL); registerComponent(_historyCtlPanel, "History", ViewInterface.SIDE_PANEL);   JTextArea errTxt = new JTextArea(); JTextArea outTxt = new JTextArea(); JScrollPane sp1 = new JScrollPane(errTxt); JScrollPane sp2 = new JScrollPane(outTxt); _err = new NPrintStream(System.err); _out = new NPrintStream(System.out); _outTextBox = sp2; _errTextBox = sp1; System.setOut(_out); System.setErr(_err); _err.addNotifyClient(errTxt); _out.addNotifyClient(outTxt);  registerComponent(sp2, "Output", ViewInterface.MAIN_PANEL); registerComponent(sp1, "Errors", ViewInterface.MAIN_PANEL);
	private void initComponents() {		registerComponent(_ctl.getRenderBox(), "Main", ViewInterface.MAIN_PANEL);		registerComponent(_layoutCtlPanel, "Layout", ViewInterface.BOTTOM_PANEL);		registerComponent(_historyCtlPanel, "History", ViewInterface.SIDE_PANEL);		// trap output to standard streams and display them in a text box		JTextArea errTxt = new JTextArea();		JTextArea outTxt = new JTextArea();		JScrollPane sp1 = new JScrollPane(errTxt);		JScrollPane sp2 = new JScrollPane(outTxt);		_err = new NPrintStream(System.err);		_out = new NPrintStream(System.out);		_outTextBox = sp2;		_errTextBox = sp1;		System.setOut(_out);		System.setErr(_err);		_err.addNotifyClient(errTxt);		_out.addNotifyClient(outTxt);				registerComponent(sp2, "Output", ViewInterface.MAIN_PANEL);		registerComponent(sp1, "Errors", ViewInterface.MAIN_PANEL);		update();	}