RFR: 8337287: Update image in javax.swing.text.Document.insert

Alexey Ivanov aivanov at openjdk.org
Mon Sep 16 19:31:09 UTC 2024


On Mon, 16 Sep 2024 19:19:56 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The text is positioned in the middle of the box -0.5 pixels.

Moving the text position by 0.5 seems to help, and the values become equal: 7 on either side.

This needs to be done for the image in `remove` too, so I'd rather do that separately, at a later time.

At this time, the diagrams for `insertString` and `remove` look the same.

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

PR Comment: https://git.openjdk.org/jdk/pull/20376#issuecomment-2353743533


More information about the client-libs-dev mailing list