mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Component.java (getFont): Return a default font instead of null.
2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/Component.java (getFont): Return a default font instead of null. From-SVN: r77352
This commit is contained in:
committed by
Thomas Fitzsimmons
parent
0314451df3
commit
58206f1160
@@ -1001,7 +1001,11 @@ public abstract class Component
|
||||
{
|
||||
if (font != null)
|
||||
return font;
|
||||
return parent == null ? null : parent.getFont();
|
||||
|
||||
if (parent != null)
|
||||
return parent.getFont ();
|
||||
else
|
||||
return new Font ("Fixed", Font.PLAIN, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user