File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
I agree. Here's the link:
subject: modifying GridLayout?
It's not a secret anymore!