summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--javax/swing/plaf/basic/BasicGraphicsUtils.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6696c0f54..db8df433f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-09-21 Roman Kennke <roman.kennke@aicas.com>
+ * javax/swing/plaf/basic/BasicGraphicsUtils.java
+ (drawStringUnderlineCharAt): Fix Y location of underline.
+
+2007-09-21 Roman Kennke <roman.kennke@aicas.com>
+
* java/awt/LightweightDispatcher.java
(dispatchEvent): Lock the component's tree to avoid threading
problems.
diff --git a/javax/swing/plaf/basic/BasicGraphicsUtils.java b/javax/swing/plaf/basic/BasicGraphicsUtils.java
index 4c270682d..e73c39bf6 100644
--- a/javax/swing/plaf/basic/BasicGraphicsUtils.java
+++ b/javax/swing/plaf/basic/BasicGraphicsUtils.java
@@ -642,7 +642,7 @@ public class BasicGraphicsUtils
fmet = g.getFontMetrics();
g.fillRect(
/* x */ x + fmet.stringWidth(text.substring(0, underlinedIndex)),
- /* y */ y + fmet.getDescent() - 1,
+ /* y */ y + 1,
/* width */ fmet.charWidth(text.charAt(underlinedIndex)),
/* height */ 1);
}