JDK-8128574 : TextArea does not set selection fill color
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 7-pool
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2011-10-25
  • Updated: 2015-06-17
  • Resolved: 2012-06-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Resolved
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Description
Setting Styleable property "-fx-highlight-text-fill" on TextArea has no effect.  Because TextArea does not set selection fill color on its text node(s).  TextField on the other hand does.
Comments
This is no longer reproducible in 2.2.
04-06-2012

Does not work for initial selection: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TextArea; import javafx.stage.Stage; public class Main extends Application { public static void main(String[] args) { Application.launch(args); } @Override public void start(final Stage stage) throws Exception { TextArea text = new TextArea("Text"); text.setStyle("-fx-highlight-text-fill: red;"); Scene scene = new Scene(text, 200, 200); text.selectAll(); stage.setScene(scene); stage.show(); } }
23-02-2012