View Single Post
  #2 (permalink)  
Old 07-01-2008, 06:09 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
A suggestion: add some debug statements (println()) that show how the values of your variables change.
Also some comments in the code describing what you are trying to do would be helpful.
For example why do you draw(rect) in paintComponent and then draw(r) in drawRect()?
Reply With Quote