How can I get the window handle (hWnd) for a Stage in JavaFX?

后端 未结 4 2023
南旧
南旧 2020-12-17 03:17

We\'re building a JavaFX application in Windows, and we want to be able to do some things to manipulate how our application appears in the Windows 7/8 taskbar. This require

4条回答
  •  情歌与酒
    2020-12-17 03:28

    com.sun.glass.ui.Window.getWindows.get(0).getNativeWindow
    

    //

    com.sun.glass.ui.Window.getFocusedWindow.getNativeWindow
    

提交回复
热议问题