On Thu, 12 Mar 2026 08:20:12 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> The protected methods ScrollBarUI#getTrackBounds() > ScrollBarUI#getThumbBounds() have > become inaccessible since JRE9 which is required to override the paint method > and to paint the knob/thumb so we can consider making them public. > > A CSR will be raised if this access expansion is accepted.. The requestor mentioned that he overwrote the paint method to mark certain positions (text matches) as colored marks on the scrollbar. and there was no portable way to get the geometry for which he needed this track and thumb bounds but he is not active on the project anymore so he doesn't remember more... I am not able to ascertain this with a testcase.. ------------- PR Comment: https://git.openjdk.org/jdk/pull/30209#issuecomment-4133855397
