JtextArea Key Filter
I want to filter the keystrokes on a JTextArea so that certain characters won't be displayed.
I tried to dispatch a backspace after the filtered characters using:
console.dispatchEvent(new KeyEvent( sp, KeyEvent.KEY_PRESSED , System.currentTimeMillis(), 0, KeyEvent.VK_BACK_SPACE, (char) 8));
But I couldn't get it to work.
How can I achieve this?
Thanks,

