The Artima Developer Community
Sponsored Link

Java Answers Forum
Java vertical GridLayout, locale

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bryn Loftus

Posts: 3
Nickname: bryn
Registered: Apr, 2010

Java vertical GridLayout, locale Posted: Jun 2, 2010 10:16 PM
Reply to this message Reply
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?

Topic: Doubt in Socket Programming Previous Topic   Next Topic Topic: Need help with this one more question...Im new to programming and learning

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use