The following code seems to result in a TextArea with a gray background instead of a transparent TextArea:
TextArea textArea = new TextArea();
textArea.setBackground(Background.EMPTY);
In contrast, TextField does become transparent (as expected) with:
TextField textField = new TextField();
textField.setBackground(Background.EMPTY);
TextArea textArea = new TextArea();
textArea.setBackground(Background.EMPTY);
In contrast, TextField does become transparent (as expected) with:
TextField textField = new TextField();
textField.setBackground(Background.EMPTY);
- relates to
-
JDK-8093807 [TextArea] TextArea background cannot be changed
- Closed