UtilGUI.monitorWindowPosition(theFrame, prefsNode);
ta = new JTextArea(30,70);
undoManager = new UndoManager();
final Document document = ta.getDocument();
document.addUndoableEditListener(undoManager);
// all change methods set dirty = true;
document.addDocumentListener(new DocumentListener() {
public void changedUpdate(DocumentEvent e) {
setDirty(true);
}