On Wed, 8 Feb 2023 17:03:01 GMT, Phil Race <p...@openjdk.org> wrote:

> if we create a caret, then call setBlinkRate(), and then install()
> then the blink rate appears to be ignored whereas before 4512626 it was 
> applied.

Ok, if the text component is already visible and editable and focused and we 
install the new caret then the blink rate will not have an effect until the 
focus is lost and regained or until it became non-editable - and i think that 
was close to what we had before and there is a bug to investigate and optimize 
such corner case. In all other cases the code works fine. The value set is 
being preserved and will be reactivated when any of the methods such as 
focusGained or when the component installUI is called - if the cursor is set 
before component becomes visible - will cause to re-evaluate the blink rate and 
the stored value set by user will take place.

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

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

Reply via email to