Java Swing - Translucent Components causing Artifacts

前端 未结 3 1457
闹比i
闹比i 2021-01-21 02:18

I\'m currently working on a group project for a college course, and I\'ve hit a bit of a stumbling block. The program we have decided to implement is a Peer-to-Peer chat client

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-21 03:01

    myComponent.revalidate();
    myComponent.repaint();
    Not sure if it "force" the redraw, but it ask it to do it when possible.

提交回复
热议问题