google-code-export / macwidgets

Automatically exported from code.google.com/p/macwidgets
1 stars 0 forks source link

ITunesTableHeaderRenderer paints incorrectly #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The ITunesTableHeaderRenderer needs to set back the icon to NULL after the last 
header value 
was of type Icon. I changed the code like this to make it work:

        if (value instanceof Icon) {
            setIcon((Icon) value);
            setText("");
            setHorizontalAlignment(SwingConstants.CENTER);
        } else {

            setIcon(null); // <------

            setText(value.toString());
            setFont(fTable.getTableHeader().getFont());
            setHorizontalAlignment(SwingConstants.LEFT);
        }

Dirk

Original issue reported on code.google.com by dlemmermann@gmail.com on 22 Jun 2009 at 6:54

GoogleCodeExporter commented 9 years ago
That was an easy one!

Original comment by kenneth....@gmail.com on 24 Jun 2009 at 7:40