We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matter of fact i'd like to make splash screen without title so i do
override fun start(stage: Stage) { stage.initStyle(StageStyle.UNDECORATED)
and get
But later i get undecorated main window
How can i do this thing right?
The text was updated successfully, but these errors were encountered:
There are many ways to skin the cat, but I prefer not to use the main stage for the splash screen. Something like this would work:
class SplashScreen : View("Please wait") { override val root = stackpane { setPrefSize(300.0, 100.0) label("Loading...") } override fun onDock() { thread { Thread.sleep(2000) runLater { close() primaryStage.show() } } } } class MainView : View("Main View") { override val root = stackpane { setPrefSize(800.0, 600.0) label("Welcome") } } class SplashApp : App(MainView::class) { override fun start(stage: Stage) { super.start(stage) find<SplashScreen>().openModal(stageStyle = StageStyle.UNDECORATED) } override fun shouldShowPrimaryStage() = false }
Sorry, something went wrong.
Thanx, it works good.
No branches or pull requests
Matter of fact i'd like to make splash screen without title so i do
and get
But later i get undecorated main window
How can i do this thing right?
The text was updated successfully, but these errors were encountered: