Code Sketch


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

import scala.swing._

val frame = new MainFrame{
    title = "My First GUI"
    contents = Button("Click me!")(println("Button clicked!"))
    size = new Dimension(200,200)
    //contents = new TextArea
   
}

frame.visible = true