JavaFX 2.0 Activating a Menu like a MenuItem

前端 未结 5 2053
夕颜
夕颜 2020-12-01 12:51

I\'m making a MenuBar, and I wan\'t the functionality to press a Menu like: \"File\" and then execute a action. Such like opening an other fxml, or

5条回答
  •  广开言路
    2020-12-01 13:26

    I think you can't allow any action on the main Menu label.

    However, you can create a stackpane, and fill it with text and a menu bar.

提交回复
热议问题