/**
  * 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
  */
 public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c) {
   super.getBaselineResizeBehavior(c);
   Border border = c.getBorder();
   if (border instanceof AbstractBorder) {
     return ((AbstractBorder) border).getBaselineResizeBehavior(c);
   }
   return Component.BaselineResizeBehavior.OTHER;
 }
 /**
  * Returns the baseline.
  *
  * @throws NullPointerException {@inheritDoc}
  * @throws IllegalArgumentException {@inheritDoc}
  * @see javax.swing.JComponent#getBaseline(int, int)
  * @since 1.6
  */
 public int getBaseline(JComponent c, int width, int height) {
   super.getBaseline(c, width, height);
   Border border = c.getBorder();
   if (border instanceof AbstractBorder) {
     return ((AbstractBorder) border).getBaseline(c, width, height);
   }
   return -1;
 }
 public void uninstallUI(JComponent c) {
   JPanel p = (JPanel) c;
   uninstallDefaults(p);
   super.uninstallUI(c);
 }
 public void installUI(JComponent c) {
   JPanel p = (JPanel) c;
   super.installUI(p);
   installDefaults(p);
 }