Skip to content

Commit

Permalink
8264398: BevelBorderUIResource​(int, Color, Color) and BevelBoder(int…
Browse files Browse the repository at this point in the history
…, Color, Color) spec should clarify about usage of highlight and shadow color

Reviewed-by: serb
  • Loading branch information
prsadhuk committed May 5, 2021
1 parent b172555 commit b71f85a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -86,6 +86,10 @@ public BevelBorder(int bevelType) {
/**
* Creates a bevel border with the specified type, highlight and
* shadow colors.
* The bevel outer highlight color and bevel inner highlight color
* will be derived from specified highlight color and
* bevel outer shadow color and bevel inner shadow color
* will be derived from specified shadow color.
* @param bevelType the type of bevel for the border
* @param highlight the color to use for the bevel highlight
* @param shadow the color to use for the bevel shadow
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -219,6 +219,10 @@ public BevelBorderUIResource(int bevelType) {

/**
* Constructs a {@code BevelBorderUIResource}.
* The bevel outer highlight color and bevel inner highlight color
* will be derived from specified highlight color and
* bevel outer shadow color and bevel inner shadow color
* will be derived from specified shadow color.
* @param bevelType the type of bevel for the border
* @param highlight the color to use for the bevel highlight
* @param shadow the color to use for the bevel shadow
Expand Down

1 comment on commit b71f85a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.