View Single Post
  #2 (permalink)  
Old 07-04-2009, 11:33 PM
OrangeDog's Avatar
OrangeDog OrangeDog is offline
Senior Member
 
Join Date: Jan 2009
Location: Cambridge, UK
Posts: 838
Rep Power: 2
OrangeDog is on a distinguished road
Default
Your code is called every single time the applet redraws, as you put it in the paint() method. Try somewhere else. Maybe when the applet starts, or when you press a button?
__________________
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
Reply With Quote