title: JavaFX-8 Make text caret visible in readonly textarea
body: <p>JavaFX textfields do not show a text caret if you set them to readonly mode. Here is an example:</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.scene.Scene;
  import javafx.scene.control.TextArea;
  import javafx.stage.Stage;
  
  public class TextAreaReadOnly extends Application {
  
      public TextAreaReadOnly() {
      }
  
      @Override
      public void start(Stage primaryStage) throws Exception {
          TextArea textarea = new TextArea();
          textarea.setText("This is all\nreadonly text\nin here.");
          textarea.setEditable(false);
          Scene scene = new Scene(textarea, 600, 400);
          primaryStage.setScene(scene);
          primaryStage.show();
      }    
  
      public static void main(String[] args) {
          launch(args);
      }
  }
  </code></pre>
  
  <p>While it is still possible to select text with Shift+Cursor keys, no caret is displayed. Does anyone know a workaround for this?</p>