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

Alexander Zuev kizune at openjdk.org
Mon Dec 19 17:38:54 UTC 2022


On Mon, 19 Dec 2022 12:09:01 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> 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.

That's weird, does not happen on any of my systems. Which OS are you testing on?

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

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



More information about the client-libs-dev mailing list