• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clearing Screen

 
Konrad Cetes
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to draw object on a screen in an infinite loop, which I have completed, however when they redraw, the original image still appears, is there anyway to clear screen of the original image and randomize them with out clearing the whole screen but rather just the object itself?

Also i am using a Java Applet with java.applet.*;

Thanks
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on what you mean by "screen" for a start. And then it depends on how you "draw" those objects.

A small executable code sample would clear up a lot of mysteries. Read our SSCCE link for hints on how to produce one.
 
Konrad Cetes
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[/code]

These are the lines to import and draw one image.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the Cs in SSCCE stands for complete.
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Konrad Cetes wrote:I'm trying to draw object on a screen in an infinite loop, which I have completed...


I'm a bit surprised that you managed to complete an infinite loop.
 
Konrad Cetes
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Honestly wasn't that hard, the code itself is a bit more complicated than that, but thats the jist of it all.
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, then. If you still have a problem then let us know, otherwise is it okay to mark this topic as resolved?
 
Konrad Cetes
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, thanks a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic