<Swing Dev> RFR: 8264398: BevelBorderUIResource​(int, Color, Color) spec should mention that the passed colors are for highlightInner and shadowOuter props

Dmitry Bessonov dbessono at openjdk.java.net
Tue Apr 6 12:18:25 UTC 2021


On Tue, 6 Apr 2021 11:12:27 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> As per https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/border/BevelBorder.java#L151
>> and https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/border/BevelBorder.java#L183
>> `derived ` is used to obtain the darker or brighter version of the same color, which is being done here for this highlight and shadow color too.
>
> any comments on the spec wording?

Does 'derived' in javax.swing domain mean the color would be different, or 'equal color' also qualifies as 'derived' javax.swing?

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

PR: https://git.openjdk.java.net/jdk/pull/3305


More information about the swing-dev mailing list