wood burning stoves
The moose likes Beginning Java and the fly likes problem with arrays and paint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem with arrays and paint" Watch "problem with arrays and paint" New topic
Author

problem with arrays and paint

ed jones
Greenhorn

Joined: Oct 01, 2008
Posts: 11
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

Joined: Oct 13, 2005
Posts: 43969
    
  33
Your problem is with the for loops; read carefully what you are entering into the array and what you are retrieving.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: problem with arrays and paint
 
It's not a secret anymore!