JPro-one / JPro

The right place to report about bugs or suggest improvements for JPro.
https://www.jpro.one
9 stars 4 forks source link

Tooltip in only one window #97

Open SchweinchenFuntik opened 3 years ago

SchweinchenFuntik commented 3 years ago

JavaFX: 15 JPro: 2020.1.3 JDK: Adopt JDK

I started actively testing applications and noticed that the Tooltip appears in only one window. In the first window, hover over the node (with the Tooltip), in the second window we do the same, in the first window the tooltip disappears; in the first window we repeat - the Tooltip disappears in the second.

Create Tooltip with FXML and Tornadofx (in different views)

SchweinchenFuntik commented 3 years ago

Im using App TornadoFX:

class MyJProApp : JProApplication() {
    private val app = MyTornadoFxApp()

    override fun start(primaryStage: Stage) {
        val scope = WebScope(primaryStage)
        app.scope = scope
        FX.setApplication(scope, app)
        app.start(primaryStage)
    }

    override fun stop() {
        app.stop()
        super.stop()
    }
}