Change the application name at runtime on Mac for a JavaFX-based App

后端 未结 4 1747
遇见更好的自我
遇见更好的自我 2021-01-06 03:08

Please take a look at this image: http://i.imgur.com/pHIg1AA.png Is it possible to change the application name (\"My JavaFX-based Mac App\") in the Mac OS X system menu bar

4条回答
  •  梦谈多话
    2021-01-06 03:44

    That should work as is always worked for me :D

    primaryStage.setTitle("LOLOLOLOL");

    This changes your window's name. You can change this value at any time, if you have the Stage element at your disposal.

提交回复
热议问题