Closed ctoabidmaqbool closed 1 year ago
I'm not sure there's a property that we can listen for in JavaFX to tell when action listeners are added/removed after they've already been added to the FXTrayIcon. I will check for this, then update.
After looking through the API, I'm not sure how this can be handled without some mild sorcery (or a ton or Reflection). I'm going to close this issue, but will keep this in mind. Please feel free to re-open if you can think of any suggestions to mitigate this unexpected behavior. Thanks for raising the issue!
Hi! If I first set actions before actual adding item, it's working as expected. But if first add item and then add event / action then it's not working fine.
As shown, it's not working, as
setOnAction()
is used after adding menu item e.g.addMenuItem()
In simple awt codding both cases are working fine!