Created
October 5, 2011 00:15
-
-
Save wkm/1263230 to your computer and use it in GitHub Desktop.
A simple example of BoxPanel with Scala Swing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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