Reputation: 133
I created a javafx button and added image and text.I want text place to top and image place to middle of the javafx button.Is it possible with javafx and how can I do it?
Upvotes: 4
Views: 9844
Reputation: 81
You can also use CSS for the button. The below example will display the text at the top with the image below (which seems counter-intuitive) for all buttons:
.button
{
-fx-content-display: bottom;
}
Upvotes: 2