aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/javax
diff options
context:
space:
mode:
authormalenkov <none@none>2014-05-13 15:50:18 +0400
committermalenkov <none@none>2014-05-13 15:50:18 +0400
commit342848659fdf25e7708e9c9e718be8c75b68dba2 (patch)
tree3eaa88daffddda5d966840d821e48e27d9b91080 /src/share/classes/javax
parent92479228ad80b879d1db69afe5b8f7b93763efda (diff)
8041917: unexcepted behavior of LineBorder while using Boolean variable true
Reviewed-by: alexsch, serb
Diffstat (limited to 'src/share/classes/javax')
-rw-r--r--src/share/classes/javax/swing/border/LineBorder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/classes/javax/swing/border/LineBorder.java b/src/share/classes/javax/swing/border/LineBorder.java
index 57d3487e4..115bbec58 100644
--- a/src/share/classes/javax/swing/border/LineBorder.java
+++ b/src/share/classes/javax/swing/border/LineBorder.java
@@ -133,8 +133,8 @@ public class LineBorder extends AbstractBorder
int offs = this.thickness;
int size = offs + offs;
if (this.roundedCorners) {
- int arc = offs + size;
- outer = new RoundRectangle2D.Float(x, y, width, height, arc, arc);
+ float arc = .2f * offs;
+ outer = new RoundRectangle2D.Float(x, y, width, height, offs, offs);
inner = new RoundRectangle2D.Float(x + offs, y + offs, width - size, height - size, arc, arc);
}
else {