Hi Sergey, It is a “nimbusBorder” property set to [red="146" green="151" blue="161" alpha="255"] and is same as menubar border. There are many items being using the nimbusBorder property and they are all have the same the RGBA values. But JLabel ‘disabled’ has a different value of: <matte red="116" green="121" blue="128" alpha="255" uiDefaultParentName="nimbusBorder" hueOffset="-0.013888836" saturationOffset="5.823001E-4" brightnessOffset="-0.12941176" alphaOffset="0"/> But the above value is same as the ‘enabled’ border as well including size. Typically, the border size and color of the ‘disabled’ item are maintained same as the ‘enabled’ state. Thanks and regards, Shashi
From: Sergey Bylokhov Sent: Thursday, July 27, 2017 9:53 PM To: Shashidhara Veerabhadraiah <shashidhara.veerabhadra...@oracle.com> Cc: swing-dev@openjdk.java.net Subject: Re: <Swing Dev> [10] JDK-8058785: Nimbus disabled tooltip needs border Hi, Shashi. I assume that other components like menu items have the same border, right?(size and color). ----- HYPERLINK "mailto:shashidhara.veerabhadra...@oracle.com"shashidhara.veerabhadra...@oracle.com wrote: > > > Hi All, Please review a fix for the JDK-8058785 where the disabled tooltip does not draws the border and blends into the disabled button and looks bad. Below is the picture of current JDK output without the fix. Solution and fix: I have updated the skin.laf file to draw a border for the disabled tool tip indicator. Below is the pic after the fix. Update to skin.laf XML file would auto generate these files(along with other files): ./build/windows-x86_64-normal-server-fastdebug/support/gensrc/java.desktop/javax/swing/plaf/nimbus/NimbusDefaults.java ./build/windows-x86_64-normal-server-fastdebug/support/gensrc/java.desktop/javax/swing/plaf/nimbus/ToolTipPainter.java. Bug: https://bugs.openjdk.java.net/browse/JDK-8058785 Webrev: http://cr.openjdk.java.net/~pkbalakr/shashi/8058785/webrev.00/ Thanks and regards, Shashi