ok. lets see, i thought of these two ways although there may be better ones:
1) if you have a TextArea (AWT) you can use the method getText() to get all the text in the TextArea as a String, and then use String methods to delete the last char and set back the text in the text area using setText(String x);
2) if its JTextArea (SWING) then you can get the document using the function getDocument(). then activate this function on the Documnet: getEndPosition() which return an object of Position. use the fucntion getOffSet to get the int offest for the documnet and then ! (finally
) append the new text at the offset position -1 .