Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when to use repaint ?  RSS feed

 
SUDA VIJAYA KUMAR
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could you please tell me the basic difference between repaint and update in applets.I am little bit confused in understanding the diff. between them.
Pl.hlp
Regards
vijay
 
SUDA VIJAYA KUMAR
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Can anybody please reply to my query.
I required it urgently
Thanks inadvance
vijay
Originally posted by SUDA VIJAYA KUMAR:
Hi,
Could you please tell me the basic difference between repaint and update in applets.I am little bit confused in understanding the diff. between them.
Pl.hlp
Regards
vijay

 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Always override update( Graphics g ), but always call repaint(). Repaint has code in it that figures out the graphics context to send to update.

-Nate
[This message has been edited by Nathan Pruett (edited November 13, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!