8336873: BasicSplitPaneDivider:oneTouchExpandableChanged() should mention that implementation depends on SplitPane.supportsOneTouchButtons property

Reviewed-by: prr, abhiscxk
This commit is contained in:
Prasanta Sadhukhan 2024-08-29 05:03:15 +00:00
parent 0ddcd70175
commit eb7ead58fd

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -394,7 +394,10 @@ public class BasicSplitPaneDivider extends Container
/**
* Messaged when the oneTouchExpandable value of the JSplitPane the
* divider is contained in changes. Will create the
* divider is contained in changes.
* If a particular L&F supports this Swing
* "SplitPane.supportsOneTouchButtons" property
* it 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.