mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 21:00:59 +07:00
20 lines
545 B
Plaintext
20 lines
545 B
Plaintext
package ${context.rootPackage}
|
|
|
|
import javafx.application.Application
|
|
import javafx.fxml.FXMLLoader
|
|
import javafx.scene.Scene
|
|
import javafx.stage.Stage
|
|
|
|
class HelloApplication : Application() {
|
|
override fun start(stage: Stage) {
|
|
val fxmlLoader = FXMLLoader(HelloApplication::class.java.getResource("hello-view.fxml"))
|
|
val scene = Scene(fxmlLoader.load(), 320.0, 240.0)
|
|
stage.title = "Hello!"
|
|
stage.scene = scene
|
|
stage.show()
|
|
}
|
|
}
|
|
|
|
fun main() {
|
|
Application.launch(HelloApplication::class.java)
|
|
} |