8272229: BasicSplitPaneDivider:oneTouchExpandableChanged() returns leftButton and rightButton as null with GTKLookAndFeel

Reviewed-by: serb, jdv, kizune
This commit is contained in:
Pankaj Bansal 2021-10-09 03:52:53 +00:00
parent f640c7aaa8
commit aac6c4ea70

View File

@ -376,9 +376,10 @@ public class BasicSplitPaneDivider extends Container
/**
* Messaged when the oneTouchExpandable value of the JSplitPane the
* receiver is contained in changes. Will create the
* <code>leftButton</code> and <code>rightButton</code> if they
* are null. invalidates the receiver as well.
* divider is contained in changes. Will create the
* <code>leftButton</code> and <code>rightButton</code> if they are null
* and corresponding JSplitPane supports oneTouchExpandable property.
* Invalidates the corresponding JSplitPane as well.
*/
protected void oneTouchExpandableChanged() {
if (!DefaultLookup.getBoolean(splitPane, splitPaneUI,