wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

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

 
wood burning stoves
 
subject: How to (re)paint an AWT applet faster
 
Similar Threads
unable to get alignment and widths right
Database ...need to implement
So difficult to use Layout managers!!!
JDBC applets
GridBagLayout squishes components on resize