diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2006-12-05 00:15:53 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2006-12-05 00:15:53 +0000 |
commit | fe6bb0d6f6b5a8f8f480a0a29be1c7073203ada7 (patch) | |
tree | d8210a16a10b40d4a237b8a70917ff223ff977c5 | |
parent | bb3c5cd352dc671c3687449c3a12a69cf5e8c72b (diff) | |
download | classpath-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/awt/Component.java | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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; } |