On Mon, 30 Mar 2026 10:18: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.. > > Prasanta Sadhukhan has updated the pull request incrementally with one > additional commit since the last revision: > > Expose API in ScrollBarUI > it will still need to cast the UI object to [BasicScrollBarUI] to access the > public methods Yes, I'd be content just with that incremental progress. > for the usecase mentioned above, we need these API in JScrollBar That would be great/better, but personally I'm reluctant to advocate for such a big change. ------------- PR Comment: https://git.openjdk.org/jdk/pull/30209#issuecomment-4184170199
