How do you delete the last character in a JTextArea?
Posted on 2003-03-12
Okay, here is the problem.:
I have a mobile phone simulation, where users use individual buttons to input letters onto the screen, by appending the JTextArea.
Now what happens the user makes a mistake - eg: spells a word incorrectly, and wants to delete the last character on the screen :
instead of typing "Hello" it goes on the screen as "Helly"
Now i want to have a button that when hit, erases the last character - "Hell", so that the user may continue.
Is that possible, or does anyone have any advice?