[jdk20] RFR: 8301989: new javax.swing.text.DefaultCaret().setBlinkRate(N) results in NPE [v2]

Phil Race prr at openjdk.org
Wed Feb 8 23:07:48 UTC 2023


On Wed, 8 Feb 2023 22:59:35 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> > We surely don't want to keep the old blink rate just because a component is non-editable ?
> 
> When we receive focus on non-editable component we set blink rate to 0 to stop caret blinking. If we do not add this condition then we immediately clear off the saved blink rate.

How do you tell that apart from the app directly clearing it ? ie the APP calling setBlinkRate(0) ?

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

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



More information about the client-libs-dev mailing list