Replace « Text Input « Java Swing Q&A





2. replacing characters in rtfeditorkit    coderanch.com

greetings. i have a little problem with my code. try to enter some few text in as many lines are you want. and press alt-p, some symbols will appear replacing newline and space characters. my problem is when the caret cursor's position is beside the last line's text, that last line will disappear instead of being formatted. but if the caret ...