• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet in a browser, refresh problem when scrolling

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When displaying an applet in a browser window, if the window size is smaller than the applet size then while scrolling to view the entire applet there are many refresh problems. Sometimes the repaint does not happen properly, sometimes half the applet is missing.
What am i doing wrong or missing? Do i have to do soemthing in the start and stop methods?
thanks in advance!
 
Steve Wall
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just had the same problem with my ticker applet.
Do you have an infinite loop in your applet?
if yes put it in a separate thread.
You might also cosider doing this:
public void update(Graphics g) {
paint(g);
}
and then call the
repaint();
somewhere in the code. Perhaps the start() method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic