You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Hi all,
I met a problem with graphics. Firstly I draw a roundRect in black color on a glassPane ,and I want to wipe that rect some seconds later.
How do I wipe? and How do I set the seconds?(I have tried Thread.sleep(xx);It's not working)
Thanks !
Shai Almog
unread,
Sep 10, 2013, 5:10:11 AM9/10/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Hi, you should probably not do that. If you are asking about thread sleep then you should probably read a bit more about the EDT and how that works. There is no wipe method, only drawing so you can fill again with the background color to wipe.
If you want to do it this way you need to write an animation where the animate() method effects the state of the animation and the paint method executes that animation. Alternatively you can use: Timelines, layout animations and replace effect all of which are much simpler and can probably accomplish this more efficiently.
fox red
unread,
Sep 10, 2013, 5:30:34 AM9/10/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message