Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

clearing the screen/window with applets  RSS feed

 
Angie Esswein
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's say I write a basic Java applet that draws a rectangle. Then I want to "erase" that or clear the gray window and draw something else. Do I have to paint over the entire screen with gray again, or is there a way to clear the output?

Thanks much,
Angie
 
Matt Fielder
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could just repaint the background?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!