Skip to content

Instantly share code, notes, and snippets.

@wkm
Created October 5, 2011 00:15
Show Gist options
  • Save wkm/1263230 to your computer and use it in GitHub Desktop.
Save wkm/1263230 to your computer and use it in GitHub Desktop.
A simple example of BoxPanel with Scala Swing
import swing._
object BoxPanelExample extends SimpleSwingApplication {
var boxPanel = new BoxPanel(Orientation.Vertical)
boxPanel.contents += new Label("a")
boxPanel.contents += new Label("b")
boxPanel.contents += new Label("c")
def top = new MainFrame {
title = "Sclera"
contents = boxPanel
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment