On Thu, 2 Apr 2026 07:57:20 GMT, Jeremy Wood <[email protected]> wrote:
> But I'm suggesting there are compelling use cases where you don't want to > extend or alter BasicScrollBarUI. But if you don't want to extend BasicScrollBarUI, you will need to cast the UI object to it to access the public methods and if the current UI object is not compatible, then there is possibility of getting ClassCastException. Even WindowsScrollBarUI extends BasicScrollBarUI and provide its own implementation of these methods so that also need to be extended to get access to. I guess for the usecase mentioned above, we need these API in JScrollBar too and internally it should query ScrollBarUI to get the data and for those UI which does not have thumb or track, it can return empty Rectangle ------------- PR Comment: https://git.openjdk.org/jdk/pull/30209#issuecomment-4181749222
