i hope you get this
try to change the documrnt of text area
make your document and set it to the text area
your document should override some methods
if you still have this problem i will send you the code
my email is email@example.com
send me an email with title 'jtextarea document'