Skip to content

Instantly share code, notes, and snippets.

@Bios-Marcel
Created July 31, 2018 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bios-Marcel/f12a83ed4bf03fcfeb17288cc31f929d to your computer and use it in GitHub Desktop.
Save Bios-Marcel/f12a83ed4bf03fcfeb17288cc31f929d to your computer and use it in GitHub Desktop.
fun main(arguments: Array<String>) {
Application.launch(App::class.java)
}
class App : Application() {
override fun start(primaryStage: Stage) {
primaryStage.title = "Popup Example"
primaryStage.initStyle(StageStyle.UTILITY)
primaryStage.opacity = 0.0
primaryStage.scene = Scene(Region())
primaryStage.show()
val popup = Popup()
popup.x = 600.0
popup.y = 400.0
popup.content.addAll(Circle(25.0, 25.0, 50.0, Color.AQUAMARINE))
popup.show(primaryStage)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment