Delassi Othmane
Delassi Othmane

Reputation: 3

how tochange font color of Jfoeinx TextArea

i'm using Jfoeinx TextArea and i want to change the font color (white by default ) i ve tried -fx-background-color but it didn't work thnx

AnchorPane root=new AnchorPane();
        JFXTextArea text =new JFXTextArea();
        root.getChildren().add(text);
        text.setStyle("-fx-background-color:#000000");
        primaryStage.setTitle("Hello World");
        primaryStage.setScene(new Scene(root, 500, 789));
         primaryStage.show();

Upvotes: 0

Views: 74

Answers (1)

Frazer Wilson
Frazer Wilson

Reputation: 161

Try with -fx-text-fill as this is how you often set svg text color

Upvotes: 1

Related Questions