Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Text under the image of a button

biochemistry43Dec 4 2012 — edited Dec 4 2012
I'm doing some buttons with image and wish you text. However I can not make the text is placed below the image.

Is there any way to do this?

I'm building button with Scene Builder.

The CSS I hold to insert the image in the button is as follows:
#chatButton {
    -fx-text-fill: white;
    -fx-graphic: url("../signa/img/chat.png");
    -fx-background-color: transparent;
}
Edited by: biochemistry43 on 4/12/2012 08:06 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2013
Added on Dec 4 2012
4 comments
1,066 views