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

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Apr 6 11:15:21 UTC 2021


On Mon, 5 Apr 2021 11:23:36 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Is there a normative definition somewhere in the spec of what "derived color" is for this domain?
>
> 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?

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

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


More information about the swing-dev mailing list