<Swing Dev> RFR: 8272229: BasicSplitPaneDivider:oneTouchExpandableChanged() returns letButton and rightButton as null with GTKLookAndFeel.
Sergey Bylokhov
serb at openjdk.java.net
Thu Aug 26 22:13:26 UTC 2021
On Thu, 26 Aug 2021 07:18:43 GMT, Pankaj Bansal <pbansal at openjdk.org> wrote:
> The function documentation for oneTouchExpandableChanged states that the function does couple of things, but in reality it only does those things if the Look and Feel supports the supportsOneTouchButtons. In case the Look and Feel does not support supportsOneTouchButtons, this functions just returns in beginning and does not do anything.
> This change clarifies the above in function documentation.
I think that the current test case is wrong, the oneTouchExpandableChanged() should not be called directly, only when the "oneTouchExpandable" property is changed.
So to consider this as a bug the test should trigger the call to the oneTouchExpandableChanged() as a result of the " oneTouchExpandable value change" and then validate the state of the buttons.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5263
More information about the swing-dev
mailing list