summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2006-12-05 00:15:53 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2006-12-05 00:15:53 +0000
commitfe6bb0d6f6b5a8f8f480a0a29be1c7073203ada7 (patch)
treed8210a16a10b40d4a237b8a70917ff223ff977c5
parentbb3c5cd352dc671c3687449c3a12a69cf5e8c72b (diff)
downloadclasspath-fe6bb0d6f6b5a8f8f480a0a29be1c7073203ada7.tar.gz
2006-12-04 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/awt/Component.java (getFontImpl): Return a default font if topmost parent's font is null.
-rw-r--r--ChangeLog5
-rw-r--r--java/awt/Component.java2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a70cf4970..2737e9b5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-04 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * java/awt/Component.java (getFontImpl): Return a default font if
+ topmost parent's font is null.
+
2006-12-04 Robert Lougher <rob.lougher@gmail.com>
* java/lang/management/ThreadInfo.java (ThreadInfo): Check
diff --git a/java/awt/Component.java b/java/awt/Component.java
index 380faf824..0bf64096c 100644
--- a/java/awt/Component.java
+++ b/java/awt/Component.java
@@ -1203,6 +1203,8 @@ public abstract class Component
Component p = parent;
if (p != null)
f = p.getFontImpl();
+ else
+ f = new Font("Dialog", Font.PLAIN, 12);
}
return f;
}