Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

put rotate only in icon from css

tretonis-JavaNetMar 21 2016 — edited Mar 28 2016

it is possible to place rotation icon in css from "Button" ?


Thank's

.my-button {

    -fx-skin: "com.sun.javafx.scene.control.skin.ButtonSkin";

    -fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color;

    -fx-background-insets: 0 0 -1 0, 0, 1, 2;

    -fx-background-radius: 5, 5, 4, 3;

    -fx-padding: 0.166667em 0.833333em 0.25em 0.833333em;

    -fx-text-fill: -fx-text-base-color;

    -fx-alignment: CENTER;

    -fx-content-display: LEFT;

   

    -fx-graphic: url('images/vector-combine.png');   /* <--- put rotate only icon into Button ??? */

}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2016
Added on Mar 21 2016
9 comments
1,781 views