Last active
October 31, 2016 16:05
-
-
Save jewelsea/5217750 to your computer and use it in GitHub Desktop.
Shows how to make a small context sensitive dialog which popups on pressing a button.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** contextcolor.css | |
* place in same folder as PopupButton.java | |
* ensure your build system copies this file to the PopupButton.class output directory on build | |
*/ | |
.menu-item:focused { | |
-fx-accent: transparent; | |
-fx-selection-bar: transparent; | |
} | |
.menu-item:focused .label { | |
-fx-text-fill: -fx-text-base-color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answer to StackOverflow question: Button with popup showed below