If someone call's setPreferredSize(), we should use that size.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2289 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2008-04-04 00:39:10 +00:00
parent c7e70fbab6
commit 72c63304f8
@@ -348,6 +348,10 @@ public class MultiLineLabel extends JComponent
// documentation inherited
public Dimension getPreferredSize ()
{
if (isPreferredSizeSet()) {
return super.getPreferredSize();
}
if (_dirty) {
// attempt to lay out the label before obtaining its preferred
// dimensions