How to forbid the backspace in a JTextField?
Hello,
I'm trying to write a JTextField KeyListener that basically consumes all backspaces, so that anything input by the user in the field cannot be cancelled. (The user doesn't setText()).
How can I do that? It seems like I cannot!
I've tried by identifying '\b' and consume the KeyEvent, but then the backspace is still executed.