switch (titlePosition) { case ABOVE_TOP: textY = y; break;  case TOP: case DEFAULT_POSITION: default: textY = y + mes.borderSpacing.top + mes.borderInsets.top - mes.textAscent; break;  case BELOW_TOP: textY = y + mes.borderSpacing.top + mes.borderInsets.top + TEXT_SPACING; break;  case ABOVE_BOTTOM: textY = y + height - mes.borderSpacing.bottom - mes.borderInsets.bottom - TEXT_SPACING - (mes.textAscent + mes.textDescent); break;  case BOTTOM: case BELOW_BOTTOM: textY = y + height - (mes.textAscent + mes.textDescent); break; }  if (mes.trimmedText == null) bp.paint(g); else { try { g.setFont(mes.font); g.setColor(getTitleColor()); g.drawString(mes.trimmedText, textX, textY + mes.textAscent); } finally { g.setFont(oldFont); g.setColor(oldColor); } bp.paintExcept(g, textX - 2, textY, mes.textWidth + 2, mes.textAscent + mes.textDescent); } }
    public void paintBorder(Component c,			    Graphics  g, 			    int  x,			    int  y, 			    int  width, 			    int  height)    {    }