Bryn Loftus
Posts: 3
Nickname: bryn
Registered: Apr, 2010
Java vertical GridLayout, locale
Posted: Jun 2, 2010 10:16 PM
Advertisement
I want a two column grid layout that fills the 1st column, then the second column instead of 1st row, 2nd row etc. I've been hunting around and it looks like I should be able to change the locale to "tl" and then it would do so: http://java.sun.com/javase/7/docs/api/java/awt/ComponentOrientation.html http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html So, I'm trying to call the applyComponentOrientation() method on my JPanel... but what do I pass it? timesPanel.applyComponentOrientation(<TL orientation here>) I found some code somewhere (lost it now...) that seems to indicate I have to create a Locale and so forth...but it was setting the DefaultLocale, which I don't want to do. Any ideas?