I'm learning how to build GUI using the standard Swing widget on Scala. Here's what I want to do:
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:
ontents += new BoxPanel(Orientation.Vertical) {
contents += new Button("Button 1")
contents += new Table(3, 3)
contents += new Button("Button 2")
}
The result:
Thanks before.