On Tue, 6 Sep 2022 23:39:17 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> Isn't this is a similar bug reported here? 
> https://bugs.openjdk.org/browse/JDK-8075608 Can we compare evaluation of that 
> and this bug?

It was mentioned in that bug that we need to change the painter to fill the 
component, which is  not the case.
We dont necessarily have to change the component to honour this proprty of 
dragging color.  
Since this SplitPane dragging color is honoured for **non-continuous layout** 
only, even for other L&F, we can just a do a fill rect of the specified color 
and show that rectangle, as is being done, instead of changing the divider 
component (as is the case for continuous layout) when the divider is moved, so 
that the specified color rectangle is shown till the divider stops moving, at 
which point the divider component will be drawn again along with splitted 
components. 
In case of **continuous layout**, the divider component needs to be shown 
**always** along with real-time repaint of splitted components, for which case, 
this divider dragging color is not honoured.

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

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

Reply via email to