Problems entering a PIN#
I'm trying to get a TextField to work a particular way. When entering a PIN# I want all the values associated with a key to equate to the numeric value so A, B, C and 2 is a 2, etc. I created a subclass of TextField overriding keyPressed and keyReleased manipulating the text with getText and setText. This works great but doesn't handle backspacing.
I modified the event to adjust the key code value and then call super.keyReleased but when it finds it's way to the TextArea class (through TextField.keyReleased) that code insists on drawing a textbox the maximum size of the screen and that isn't what I'm looking for.
Any suggestions for a simple edit control that can be used for entering a PIN# regardless of how the keyboard is set and without popping up additional components? Thanks.