classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: BasicLabelUI cleanup


From: Roman Kennke
Subject: [cp-patches] FYI: BasicLabelUI cleanup
Date: Thu, 24 Nov 2005 20:32:10 +0000

Hi,

I removed some unnecessary code from the BasicLabelUI.

2005-11-24  Roman Kennke  <address@hidden>

        * javax/swing/plaf/basic/BasicLabelUI.java
        (getPreferredSize): Don't use deprecated method to acquire
        FontMetrics object. This can be done more elegantly using
        Component.getFontMetrics().
        (paint): Removed unnecessary font setting code. This is already
        performed in JComponent.getComponentGraphics().

/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

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