java - JavaFX TextField CSS -
how create javafx textfield android textfield using javafx css ?
for example :
i have tried lots of fx css not achieved . here http://jsfiddle.net/qkm37/ css exist html input type not applicable in javafx scenebuilder .
for example : /** not exist in javafx **/
-fx-border: none;
-fx-background: bottom left linear-gradient(#a9a9a9, #a9a9a9) no-repeat, bottom center linear-gradient(#a9a9a9, #a9a9a9) repeat-x, bottom right linear-gradient(#a9a9a9, #a9a9a9) no-repeat;
try in css file:
.text-field { -fx-background-color: #a9a9a9 , white , white; -fx-background-insets: 0 -1 -1 -1, 0 0 0 0, 0 -1 3 -1; } .text-field:focused { -fx-background-color: #a9a9a9 , white , white; -fx-background-insets: 0 -1 -1 -1, 0 0 0 0, 0 -1 3 -1; }
Comments
Post a Comment