Menu

#6 Setting text in a TextComponent doesn't result in a repaint

open
Filip
Widget (8)
5
2012-04-09
2012-02-23
Gerrit Hohl
No

Hello everyone,

I tried to set text in a TextArea. If I set it before the window was painted the first time, the text appeared. But if I set it when the window and the TextArea was already painted, it didn't repaint it. After looking in the source I'm pretty sure that setText(String) in the TextComponent class doesn't repaint the component after setting the new text.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.