Methods Summary |
---|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent c)
if(panelUI == null) {
panelUI = new BasicPanelUI();
}
return panelUI;
|
public int | getBaseline(javax.swing.JComponent c, int width, int height)Returns the baseline.
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$BaselineResizeBehavior | getBaselineResizeBehavior(javax.swing.JComponent c)Returns an enum indicating how the baseline of the component
changes as the size changes.
super.getBaselineResizeBehavior(c);
Border border = c.getBorder();
if (border instanceof AbstractBorder) {
return ((AbstractBorder)border).getBaselineResizeBehavior(c);
}
return Component.BaselineResizeBehavior.OTHER;
|
protected void | installDefaults(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 void | installUI(javax.swing.JComponent c)
JPanel p = (JPanel)c;
super.installUI(p);
installDefaults(p);
|
protected void | uninstallDefaults(javax.swing.JPanel p)
LookAndFeel.uninstallBorder(p);
|
public void | uninstallUI(javax.swing.JComponent c)
JPanel p = (JPanel)c;
uninstallDefaults(p);
super.uninstallUI(c);
|