Professional Documents
Culture Documents
New Text Document
New Text Document
New Text Document
KeyListener editorKeyListener;
FocusListener editorFocusListener;
if (newEditor != null) {
editor = (JTextComponent) newEditor.getEditorComponent();
editor.addKeyListener(editorKeyListener);
editor.addFocusListener(editorFocusListener);
editor.setDocument(this);
}
}