When user presses a button in my JavaFX2.2 UI, a dark blue halo appears to show it was clicked. During the course of events, my program may want to \'unclick\' it to show it
From a css stylesheet this command also works. There is no need for a toggle button. Once you press a different button, focus changes to the new one.
.button:focused{ -fx-background-color: gray;