classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: SwingUtilities.layoutCompoundLabel fixup


From: Roman Kennke
Subject: [cp-patches] FYI: SwingUtilities.layoutCompoundLabel fixup
Date: Fri, 23 Sep 2005 11:00:29 +0200 (CEST)
User-agent: SquirrelMail/1.4.4

The layoutCompoundLabel method (used by many Swing components) had a bug
that could lead to invisible labels. This was the case when the
verticalTextPosition is set to BOTTOM and there is no icon. In this case
the method laid out the label at a negative position, thus shifting it
outside of the view rectangle and therefore making it invisible. This is
fixed.

2005-09-23  Roman Kennke  <address@hidden>

        * javax/swing/SwingUtilities.java
        (layoutCompoundLabel): Fix the case when verticalTextPosition=BOTTOM
        and without icon. The label text slipped out of the view rectangle
        in this case.

/Roman

Attachment: SwingUtilities.diff
Description: Text Data


reply via email to

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