mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +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
@@ -1,5 +1,8 @@
|
||||
2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
|
||||
|
||||
* java/awt/Component.java (getFont): Return a default font
|
||||
instead of null.
|
||||
|
||||
* java/awt/Scrollbar.java (next_scrollbar_number): New field.
|
||||
(Scrollbar (int, int, int, int, int)): Make default page
|
||||
increment 10.
|
||||
|
||||
@@ -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