This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modifying GridLayout?

 
Kate Zoy
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know if you can do it automatically, but this seems to work OK
 
Kate Zoy
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That makes sense! I'll try it! Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic