CodeArea: how to get the indexes of the first visible paragraph and the last one?

Andy Goryachev andy.goryachev at oracle.com
Wed May 7 15:56:40 UTC 2025


RichTextArea.getTextPosition() should be able to give the answer.

-andy

From: openjfx-dev <openjfx-dev-retn at openjdk.org> on behalf of PavelTurk <pavelturk2000 at gmail.com>
Date: Wednesday, May 7, 2025 at 08:52
To: openjfx-dev at openjdk.org <openjfx-dev at openjdk.org>
Subject: CodeArea: how to get the indexes of the first visible paragraph and the last one?
Could anyone say how to get the indexes of the first visible paragraph and the last visible paragraph.
If it currently possible. I am talking about indexes relative to all paragraphs in the code area.

Best regards, Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20250507/d7ab0f31/attachment.htm>


More information about the openjfx-dev mailing list