Advertisement
Guest User

Scala forced me to do casting!: 1.Demonstration

a guest
Oct 9th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.54 KB | None | 0 0
  1.  
  2. import java.io.File
  3.  
  4. import scalafx.Includes._
  5. import scalafx.application._
  6. import scalafx.application.JFXApp._
  7. import scalafx.geometry._
  8. import scalafx.Includes._
  9. import scalafx.scene._
  10. import scalafx.scene.paint._
  11. import scalafx.scene.layout._
  12. import scalafx.scene.control._
  13. import scalafx.scene.text._
  14.  
  15.  
  16. object Main extends JFXApp {
  17.   stage = new PrimaryStage {
  18.     width = 640;height = 480
  19.     scene = new Scene {
  20.       root = new VBox {
  21.         content.addAll(new StackPane{content = new Text("Demo")})
  22.       }
  23.     }
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement