<Swing Dev> Java look and feel doesn't draw rectangle when focus comes to the JSlider and hence focus is not clearly visible.

Pavel Porvatov pavel.porvatov at oracle.com
Wed Jul 6 16:49:57 UTC 2011


Hi Charles,
> On 03/30/2011 05:37 PM, Charles Lee wrote:
>> Starting SwingSet2 --> JColorChoose --> BackGround --> RGB
>>
>> Red is checked as default, but without focus (attached)
>> After patch (attached), a focus (rectangle) is draw (attached).
As you can see the MetalSliderUI#paintFocus is overridden to remove 
dashes, and it's an initial design of Metal LAF. I agree that in the 
Ocean theme a focused JSlider looks almost like a non-focused one (e.g. 
the Steel theme doesn't have such problem). There is a bug

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4966108

I'm not sure we can add dashes because of possible regressions...

Regards, Pavel

> Hi guys,
> 3 months pass. Is there anyone interested in the issue? should I move 
> this patch to openjdk 8?
>




More information about the swing-dev mailing list