12
Próbuję zmienić tło i kolor tekstu w obszarze TextArea w javafx-2.JavaFX-2 - ustaw różne style
myComponent = new TextArea();
myComponent.setStyle("-fx-text-fill: white;");
myComponent.setStyle("-fx-background-color: black;");
myComponent.setStyle("-fx-font: " + GUIConstants.SysResponseFont.getName());
myComponent.setStyle("-fx-font-family: " + GUIConstants.SysResponseFont.getFamily());
myComponent.setStyle("-fx-font-size: " + GUIConstants.SysResponseFont.getSize());
myComponent.setStyle("-fx-font-weight: " + GUIConstants.SysResponseFont.getStyle());
Ani kolory, ani czcionka nie zostaną ustawione w tym obszarze tekstowym. Czy muszę stosować inne podejście?
Dzięki, teraz, że to stwierdzacie, to ma sens. – Rouby