default:
  protected static void rotateInsets(Insets topInsets, Insets targetInsets,                                     int targetPlacement)  {    // Sun's version will happily throw an NPE if params are null,    // so I won't check it either.    switch (targetPlacement)    {    case SwingConstants.TOP:      targetInsets.top = topInsets.top;      targetInsets.left = topInsets.left;      targetInsets.right = topInsets.right;      targetInsets.bottom = topInsets.bottom;      break;    case SwingConstants.LEFT:      targetInsets.left = topInsets.top;      targetInsets.top = topInsets.left;      targetInsets.right = topInsets.bottom;      targetInsets.bottom = topInsets.right;      break;    case SwingConstants.BOTTOM:      targetInsets.top = topInsets.bottom;      targetInsets.bottom = topInsets.top;      targetInsets.left = topInsets.left;      targetInsets.right = topInsets.right;      break;    case SwingConstants.RIGHT:      targetInsets.top = topInsets.left;      targetInsets.left = topInsets.bottom;      targetInsets.bottom = topInsets.right;      targetInsets.right = topInsets.top;      break;    }  }