From eb7ead58fd70822669d2aa1a0053814e58955f82 Mon Sep 17 00:00:00 2001 From: Prasanta Sadhukhan Date: Thu, 29 Aug 2024 05:03:15 +0000 Subject: [PATCH] 8336873: BasicSplitPaneDivider:oneTouchExpandableChanged() should mention that implementation depends on SplitPane.supportsOneTouchButtons property Reviewed-by: prr, abhiscxk --- .../javax/swing/plaf/basic/BasicSplitPaneDivider.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java index 188e6753887..119e12276c7 100644 --- a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java +++ b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java @@ -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 * leftButton and rightButton if they are null * and corresponding JSplitPane supports oneTouchExpandable property. * Invalidates the corresponding JSplitPane as well.