m******e 发帖数: 7 | 1 Hello everyone,
I am writing a simple word processor in Java. I use JTextPane and implemented
the usual functions like cut, paste, insert, change the font for selected
text, save the file in rft or html format. But how can I set the input mode to
"overwrite" by press the "insert"-key? My problem is that the new input
doesn't overwrite the text after the cusor after I press the insert key. Can
anyone give me some tips? Which Class is responsible for this action? Thanks
a lot in advance. |
|