Skip to content

Commit b71f85a

Browse files
committed
8264398: BevelBorderUIResource​(int, Color, Color) and BevelBoder(int, Color, Color) spec should clarify about usage of highlight and shadow color
Reviewed-by: serb
1 parent b172555 commit b71f85a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/java.desktop/share/classes/javax/swing/border/BevelBorder.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -86,6 +86,10 @@ public BevelBorder(int bevelType) {
8686
/**
8787
* Creates a bevel border with the specified type, highlight and
8888
* shadow colors.
89+
* The bevel outer highlight color and bevel inner highlight color
90+
* will be derived from specified highlight color and
91+
* bevel outer shadow color and bevel inner shadow color
92+
* will be derived from specified shadow color.
8993
* @param bevelType the type of bevel for the border
9094
* @param highlight the color to use for the bevel highlight
9195
* @param shadow the color to use for the bevel shadow

src/java.desktop/share/classes/javax/swing/plaf/BorderUIResource.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -219,6 +219,10 @@ public BevelBorderUIResource(int bevelType) {
219219

220220
/**
221221
* Constructs a {@code BevelBorderUIResource}.
222+
* The bevel outer highlight color and bevel inner highlight color
223+
* will be derived from specified highlight color and
224+
* bevel outer shadow color and bevel inner shadow color
225+
* will be derived from specified shadow color.
222226
* @param bevelType the type of bevel for the border
223227
* @param highlight the color to use for the bevel highlight
224228
* @param shadow the color to use for the bevel shadow

0 commit comments

Comments
 (0)