I have a text area created using JTextArea editorText = new JTextArea();
and I need to process the keystrokes being entered into the textArea before they can be displayed in the textArea. But it is getting displayed on the textArea even though I use a keyAdapter like so :
private class KeyPressListener extends KeyAdapter
{
public void keyPressed(KeyEvent evt) {
editorText.append(""+evt.getKeyCode());
}
}
editorText.setKeyListener(keyAdapter); Is there a way for me to process the information entered into the textarea and then display it on the screen?