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

Alexey Ivanov aivanov at openjdk.org
Sat Dec 3 13:01:51 UTC 2022


On Fri, 2 Dec 2022 23:52:55 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> Set the text caret to be visible but not blinking on the non-editable text area.
>
> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Handling the case when blink rate is set while component is unedited
>   Test HidingSelectionTest.java is rewritten and corrected.

At least on Windows, non-editable text controls have a blinking caret. Just open Properties of any file in Windows Explorer. All the information is displayed in non-editable text controls except for the file name which is in an editable one. The non-editable text controls in Properties dialog have no borders, so no other indication but the blinking caret indicates the control is focused. It is possible to add the border to a text control.

I don't think a non-blinking caret is a good idea.

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

PR: https://git.openjdk.org/jdk/pull/11408



More information about the client-libs-dev mailing list