Advertisement
Guest User

Untitled

a guest
Feb 27th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.51 KB | None | 0 0
  1. import javafx.application.{Application => JavaFXApplication}
  2. import javafx.scene.layout.Pane
  3. import javafx.scene.control.Button
  4.  
  5.  
  6.  
  7. class FXApplication extends JavaFXApplication {
  8.     override def start(primaryStage: Stage): Unit = {
  9.         primaryStage.setTitle("SuperCopyMan 2")
  10.         val pane = new Pane()
  11.         val button = new Button("click me")
  12.  
  13.         pane.getChildren.add(button)
  14.  
  15.         val scene = new Scene(pane,500,400)
  16.         primaryStage.setScene(scene)
  17.         primaryStage.setResizable(false)
  18.         primaryStage.show()
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement