aspose file tools*
The moose likes Java in General and the fly likes modifying GridLayout? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "modifying GridLayout?" Watch "modifying GridLayout?" New topic
Author

modifying GridLayout?

Kate Zoy
Ranch Hand

Joined: Feb 11, 2004
Posts: 33
For the purpose of my program, I figured a grid layout would be preferable. However, GridLayout arranges items like this:
1 2 3
4 5 6
7 8 9
And I want it to lay them out like this:
1 4 7
2 5 8
3 6 9
Is there anyway I can modify the GridLayout to output my items vertically instead of horizontally? If not, what alternative layout should I use to acheive such distribution?
Let me know! Thanks
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Don't know if you can do it automatically, but this seems to work OK
Kate Zoy
Ranch Hand

Joined: Feb 11, 2004
Posts: 33
That makes sense! I'll try it! Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: modifying GridLayout?