On Fri, 19 Aug 2022 07:40:13 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> SplitPaneDivider.draggingColor UIProperty was not honoured in Nimbus L&F. 
> Added support for setting SplitPane dragging color for Nimbus L&F by drawing 
> a fillRect of the set color as done in BasicLookAndFeel.
> The fix relies on `continuousLayout` property being false by default which is 
> enabled for Nimbus, which is set to default false now, same as in other L&F. 
> I think it was set true just to have documented default value in JDK-6937415
> 
> closed test mentioned in JBS is used for fix check.
> All jtreg swing tests are ok along with SwingSet2 JSplitPane demo in Nimbus 
> L&F.

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java 
line 272:

> 270:             public void paint(Graphics g) {
> 271:                 paintDragDivider(g, 0, 0, getWidth(), getHeight());
> 272:                 if(!isContinuousLayout() && getLastDragLocation() != -1) 
> {

Let's add space after `if`

-------------

PR: https://git.openjdk.org/jdk/pull/9937

Reply via email to