assureRectsCreated(tabPane.getTabCount()); contentRect = SwingUtilities.calculateInnerArea(tabPane, contentRect);  calculateTabRects(tabPane.getTabPlacement(), tabPane.getTabCount());  if (tabPane.getSelectedIndex() != -1) { Component visible = getVisibleComponent(); Insets insets = getContentBorderInsets(tabPane.getTabPlacement()); if (visible != null) visible.setBounds(contentRect.x + insets.left, contentRect.y + insets.top, contentRect.width - insets.left - insets.right, contentRect.height - insets.top - insets.bottom); }
int count = tabPane.getTabCount(); assureRectsCreated(count); calculateTabRects(tabPane.getTabPlacement(), count); tabRunsDirty = false;
    public void calculateLayoutInfo()    {      assureRectsCreated(tabPane.getTabCount());      contentRect = SwingUtilities.calculateInnerArea(tabPane, contentRect);      calculateTabRects(tabPane.getTabPlacement(), tabPane.getTabCount());      if (tabPane.getSelectedIndex() != -1)        {          Component visible = getVisibleComponent();          Insets insets = getContentBorderInsets(tabPane.getTabPlacement());          if (visible != null)            visible.setBounds(contentRect.x + insets.left,                              contentRect.y + insets.top,                              contentRect.width - insets.left - insets.right,                              contentRect.height - insets.top - insets.bottom);        }    }