[jdk20] RFR: 4512626: Non-editable JTextArea provides no visual indication of keyboard focus [v2]

Alexander Zvegintsev azvegint at openjdk.org
Mon Dec 19 12:11:58 UTC 2022


On Sat, 17 Dec 2022 01:14:00 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> I updated the code now the behaviour is correct (as far as i tested) and the blink rate is reported as if it is set to the correct value even on non-editable text element.
>
> I am still having issue with non-blinking cursor on editable field with the latest version of the fix.
> 
> Fails for me with test provided above and commented `requestFocus(button);` line.

The latest version does not work good for me,
e.g. with the test above and `textField.getCaret().setBlinkRate(250)`(not `2500`):

1. with `requestFocus(button);`:
 caret blinks several times and stops
 on mouse move, focus gained on text field the caret blinks several times and stops again.
2. without `requestFocus(button);`:
 it doesn't blink until focus out / focus in on the text component
 after this blinks several times and stops.

-------------

PR: https://git.openjdk.org/jdk20/pull/21



More information about the client-libs-dev mailing list