JavaFX button setOnMousePressed not triggering with button.arm()
I am trying to replicate a “Push to talk” style button system in JavaFX. When you hold down a key on the stage, the button is activated and deactivated when you let go. As you can see from my example below, when you hold down the button and let go it prints out the correct action.