Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to repaint my Applet

  Asked By: Adelisa    Date: Feb 22    Category: Java    Views: 1134

I am facing a poblem with an apllet I created.
when the roll the vertical or the horizontal scroll bars of the page that
containig my applet
,the applet does not repaint( ) causing the surface not being updated ,and the
GUI components are left behind making what's to be called "turds".
I tried to use a Thread to make a periodic repaint( ) but it does not work.

Is there any way to make every thing get repainted correctly?????



1 Answer Found

Answer #1    Answered By: Logan Bouchard     Answered On: Feb 22

first of all, you do have a paint mehtod in your class

if you do, you can add the "repaint()" to your
EventListener. This way, each time you click on the
arrow scrolling up, left, down, right, the applet
calls repaint().

Didn't find what you were looking for? Find more on how to repaint my Applet Or get search suggestion and latest updates.