Is it possible to define padding and margin for TextField
s in JavaFX using CSS? I have tried -fx-padding
and some other properties, but no effect. I am using JavaFX 2.2 which is included in the latest version of Java 7.
I have many textfields and doing something like:
<GridPane.margin>
<Insets bottom="10.0" left="60.0" right="0.0" top="10.0"/>
</GridPane.margin>
after each textfield is not a good solution for me.