• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with arrays and paint

 
ed jones
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to make 5 rows each with 10 blocks of Rectangles

When I run this I only see the last row, and I can't figure out why?

Also is there a better way to approach this ? / ie: creating Rectangle objects.

thanks for your time
 
Campbell Ritchie
Sheriff
Pie
Posts: 50168
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem is with the for loops; read carefully what you are entering into the array and what you are retrieving.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic