[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/24033] New: JComponent.getFont() should return null
From: |
david dot gilbert at object-refinery dot com |
Subject: |
[Bug swing/24033] New: JComponent.getFont() should return null |
Date: |
23 Sep 2005 13:29:38 -0000 |
A UI delegate should install its default font on a JComponent only if the
existing font is null or implements UIResource. In GNU Classpath, a JComponent
that has no font set yet still returns a default font (from the getFont() method
in java.awt.Component). This is preventing the UI delegate (for example, the
BasicComboBoxUI class that I'm working on right now) from installing its default
font.
I have committed a test in Mauve
(gnu.testlet.javax.swing.JComponent.getFont.java) that checks for this. It
passed for me on JDK 1.4.2 and fails with the latest GNU Classpath from CVS.
--
Summary: JComponent.getFont() should return null
Product: classpath
Version: 0.18
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: swing
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: david dot gilbert at object-refinery dot com
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24033
- [Bug swing/24033] New: JComponent.getFont() should return null,
david dot gilbert at object-refinery dot com <=