0
我使用Jfoeinx TextArea和我想改變字體顏色(默認爲白色) 我已經試過-fx,背景顏色,但它沒有工作 日Thnx如何tochange字體顏色Jfoeinx文本區域的
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();
要字體顏色不是背景,因此用'-fx-文本fill' –
謝謝你,爲框的顏色,其中i寫文本,它總是白色我已經嘗試過FX背景顏色來改變它,但它沒有工作 –