<Swing Dev> RFR: 8272229: BasicSplitPaneDivider:oneTouchExpandableChanged() returns letButton and rightButton as null with GTKLookAndFeel.
Pankaj Bansal
pbansal at openjdk.java.net
Mon Aug 30 08:10:28 UTC 2021
On Thu, 26 Aug 2021 22:10:52 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> 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.
The bug is filled to make the specification to clarify that the behaviour mentioned in specification can change according to the L&F currently being used. That is what the current change is doing. If some L&F does not support oneTouchButtons, the function will not do anything and return.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5263
More information about the swing-dev
mailing list