bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/24077] Cannot create JFileChooser due to NPE (getFontMetrics)


From: langel at redhat dot com
Subject: [Bug swing/24077] Cannot create JFileChooser due to NPE (getFontMetrics)
Date: 27 Sep 2005 20:56:10 -0000

------- Additional Comments From langel at redhat dot com  2005-09-27 20:56 
-------
A UI delegate should install its default font on a JComponent only if the
existing font is null or implements UIResource.  

For some reason, many UI delegates are not setting the default font. It is
correct for Component.getFont to return null when no default font has been set.

I am looking into which UIs have not set their default fonts.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24077




reply via email to

[Prev in Thread] Current Thread [Next in Thread]