{ JLabel b = (JLabel)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), b.getVerticalTextPosition()); System.out.println("JLABEL->^^^^^^^^^^^^^^^^^^^^^^   BASIC-PREF="+d + ",T="+b.getText()); return d; }
{ JLabel lab = (JLabel)c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = lab.getInsets(); FontMetrics fm = lab.getToolkit().getFontMetrics(lab.getFont()); layoutCL(lab, fm, lab.getText(), lab.getIcon(), vr, ir, tr); Rectangle cr = tr.union(ir); return new Dimension(insets.left + cr.width + insets.right, insets.top + cr.height + insets.bottom);  }
    public Dimension getPreferredSize(JComponent c)     {	JLabel b = (JLabel)c;	Dimension d = BasicGraphicsUtils.getPreferredSize(b, 							  gap,							  b.getText(),							  b.getIcon(),							  b.getVerticalAlignment(),							  b.getHorizontalAlignment(),							  b.getHorizontalTextPosition(),							  b.getVerticalTextPosition());	System.out.println("JLABEL->^^^^^^^^^^^^^^^^^^^^^^   BASIC-PREF="+d + ",T="+b.getText());	return d;    }