A scala.swing.FlowPanel lays out its components from left to right, with some separating space in between:
import scala.swing._ class UI extends MainFrame { title = "Flow Panel" contents = new FlowPanel { contents += new Label("A Label") contents += Swing.HStrut(30) contents += new Button("A Button") contents += new Button("Another Button") contents += Button("Close") { sys.exit(0) } } } object PanelOne { def main(args: Array[String]) { val ui = new UI ui.visible = true } }