File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes How to (re)paint an AWT applet faster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to (re)paint an AWT applet faster" Watch "How to (re)paint an AWT applet faster" New topic

How to (re)paint an AWT applet faster

Tien Shan
Ranch Hand

Joined: Oct 08, 2004
Posts: 38
Is there a way to repaint this AWT applet of mine little bit faster? If I have 10 columns and 20 rows of textFields, when I repaint the applet, I can literally "see" the repainting being done, like an unseen hand sweeping clean the fields and then another hand putting the new fields in places. I will need to do better.

Does anyone have an advice?
Thank you.

and the html
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
if the 10 x 20 textfields are 'set' ie they will not change to 8 x 20 or 10 x 22 etc
there is no need to remove/add them back.

try commenting out these lines

I agree. Here's the link:
subject: How to (re)paint an AWT applet faster
It's not a secret anymore!