java repaint()无效
黄舟
黄舟 2017-04-18 10:11:20
0
2
235
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
洪涛

1. Before each rendering, the previous canvas must be cleared, otherwise it will be superimposed

2. If you want to display animation, you need to set a sleep time, otherwise you will not be able to see the intermediate process

阿神

It’s probably because you are not here x=2, y=2 时清除之前 x=1, y=1 时写的 "hello", so they all overlap and form a thick blue line : )

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!