Code Sketch


Introduction to the Art of Programming Using Scala (GUI Video 1)
By: Antecedent
//http://www.youtube.com/watch?v=AbBvRtNBDL0

import scala.swing._

val frame = new MainFrame(
    title = "My First GUI"
    contents = Button("Click Me!")(println("Button was clicked!"))
    size = new Dimension(500,500)
    centerOnScreen
)

frame.visible = true