小编Rou*_*uby的帖子

JavaFX-2 - 设置多种样式

我试图改变javafx-2中TextArea的背景和文本颜色.

    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());
Run Code Online (Sandbox Code Playgroud)

此TextArea中的颜色和字体均未设置.我必须使用不同的方法吗?

css javafx-2

14
推荐指数
1
解决办法
2万
查看次数

如何隐藏HTMLEditor的控件?

是否可以将HTMLEditor的控件隐藏在实际文本之上?(对齐,复制和粘贴图标,样式等)

谢谢你的帮助

javafx-2

12
推荐指数
5
解决办法
1万
查看次数

标签 统计

javafx-2 ×2

css ×1