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

Sergey Bylokhov serb at openjdk.java.net
Thu Apr 8 04:49:55 UTC 2021


On Thu, 8 Apr 2021 04:31:12 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> I don't think the spec is coped from BevelBorder...Yes, the spec is inspired by how BevelBorder treates the shadow/highlight color!

The BevelBorderUIResource is just a tagged wrapper on top of the BevelBorder, it does not provide any additional functionality.

> You want same spec to be copied to BevelBorder(int, Color, Color) constrcutor too?

Yes, this constructor is called from the BevelBorderUIResource, and it will be strange if the subclass will have a better spec than the parent.

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

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


More information about the swing-dev mailing list