tabPane.layout();
tabPane.revalidate();
    public void propertyChange(PropertyChangeEvent e)    {      if (e.getPropertyName().equals("tabLayoutPolicy"))        {          layoutManager = createLayoutManager();                    tabPane.setLayout(layoutManager);        }      else if (e.getPropertyName().equals("tabPlacement")          && tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT)        {          incrButton = createIncreaseButton();          decrButton = createDecreaseButton();        }      tabPane.layout();      tabPane.repaint();    }