Hi,
I'm learning how to build GUI using the standard Swing widget on Scala.
Here's what I want to do:
<http://i.stack.imgur.com/6N67a.png>
I've had success in **creating** the components, but failed on **aligning**
it. All of my components are aligned centered, not like what I want
(Button1 on left, table on center, and button2 on right). I can't find much
information about Scala's Swing either. Most of the search result is about
Java's (which I don't know anything about). What should I do to force the
alignment?
Here's the code:
contents += new BoxPanel(Orientation.Vertical) {
contents += new Button("Button 1")
contents += new Table(3, 3)
contents += new Button("Button 2")
}
The result:
<http://i.stack.imgur.com/Mop5u.png>
Thanks before.
(I've cross posted from Stackoverflow (original thread<http://stackoverflow.com/questions/13380701/scala-swing-component-ali...>)
because there seems to be no answer there. Please tell me if this is not
allowed. Thanks before).