How to disable blinking cursor in TextArea in Java?

In Perl Tk, the trick is that you can set the "paste during" text widget to 0, which disables the blinking cursor:

$self->{status_line}=$self->{status_frame}->Text(
-width=>80,-font=>[-size=>10],-height=>1,
-insertontime=>0)->pack(-side=>'left');

      

Is there an equivalent to this in Java to disable the blinking cursor?

0
java javafx cursor textarea


source to share


1 answer


You can do it in CSS with

-fx-display-caret: false ;

      

or inline:



textArea.setStyle("-fx-display-caret: false;");

      

or in an external CSS file:

.text-area {
    -fx-display-caret: false ;
}

      

+1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics