For some reason, when I call setText multiple times on the same JLabel, the messages overlap one another and become unreadable. The first message displays just fine, but subsequent messages don't.
I've tried overwriting the current message with spaces before displaying a new message, calling invalidate() then validate(), and calling repaint(). None of those helped.
I've tried overwriting the current message with spaces before displaying a new message, calling invalidate() then validate(), and calling repaint(). None of those helped.