java - Swing JTextArea caret events -


are there events fired when caret "blinking"?

(not when position changed or property changed etc, blink of caret horizontal line)

how jtextfield displays hint (which disappears when user starts type):

enter image description here

and the same functionality used in jtextarea:

enter image description here

as can see, while caret blinkng, first letter overwritten.

check method of defaultcaret

protected synchronized void damage(rectangle r) 

you can override , add code there


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -