wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "modifying GridLayout?" Watch "modifying GridLayout?" New topic

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
subject: modifying GridLayout?
Similar Threads
Random Numbers II
Sudoku puzzle
Swap sublist of an arraylist with the sublist of another arraylist
khalid mughal's mock exam