FileDocCategorySizeDatePackage
BasicPanelUI.javaAPI DocJava SE 6 API2534Tue Jun 10 00:26:48 BST 2008javax.swing.plaf.basic

BasicPanelUI

public class BasicPanelUI extends PanelUI
BasicPanel implementation
version
1.13 11/17/05
author
Steve Wilson

Fields Summary
private static PanelUI
panelUI
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)

	if(panelUI == null) {
            panelUI = new BasicPanelUI();
	}
        return panelUI;
    
public intgetBaseline(javax.swing.JComponent c, int width, int height)
Returns the baseline.

throws
NullPointerException {@inheritDoc}
throws
IllegalArgumentException {@inheritDoc}
see
javax.swing.JComponent#getBaseline(int, int)
since
1.6

        super.getBaseline(c, width, height);
        Border border = c.getBorder();
        if (border instanceof AbstractBorder) {
            return ((AbstractBorder)border).getBaseline(c, width, height);
        }
        return -1;
    
public java.awt.Component$BaselineResizeBehaviorgetBaselineResizeBehavior(javax.swing.JComponent c)
Returns an enum indicating how the baseline of the component changes as the size changes.

throws
NullPointerException {@inheritDoc}
see
javax.swing.JComponent#getBaseline(int, int)
since
1.6

        super.getBaselineResizeBehavior(c);
        Border border = c.getBorder();
        if (border instanceof AbstractBorder) {
            return ((AbstractBorder)border).getBaselineResizeBehavior(c);
        }
        return Component.BaselineResizeBehavior.OTHER;
    
protected voidinstallDefaults(javax.swing.JPanel p)

        LookAndFeel.installColorsAndFont(p,
					 "Panel.background",
					 "Panel.foreground",
					 "Panel.font");
        LookAndFeel.installBorder(p,"Panel.border");
        LookAndFeel.installProperty(p, "opaque", Boolean.TRUE);
    
public voidinstallUI(javax.swing.JComponent c)

        JPanel p = (JPanel)c;
        super.installUI(p);
        installDefaults(p);
    
protected voiduninstallDefaults(javax.swing.JPanel p)

        LookAndFeel.uninstallBorder(p);
    
public voiduninstallUI(javax.swing.JComponent c)

        JPanel p = (JPanel)c;
        uninstallDefaults(p);
        super.uninstallUI(c);