Created
July 31, 2018 21:39
-
-
Save Bios-Marcel/f12a83ed4bf03fcfeb17288cc31f929d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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