JAVAFX - TextArea issue

188 Views Asked by At

I have strange problem which concerns to TextArea control. Using SceneBuilder I have apllied to it After a stylesheet:

.text-input {
  -fx-font-style: italic;
  -fx-font-weight: bold;
  -fx-text-fill: blue;
  -fx-background-color: black;
}

the input text just has become hidden:

enter image description here

What is more I can't format aligment of input text to be centered like:

-fx-text-aligment: center;

or

-fx-font-alignment: center

Should I replace all default styles for this control? How to do it?

0

There are 0 best solutions below