void (Graphics g, JComponent c) { if (Boolean.getBoolean("use.basic.tabs.scrolling")) { super.paint(g, c); return; } int selectedIndex = tabPane.getSelectedIndex(); int tabPlacement = tabPane.getTabPlacement(); if (!tabPane.isValid()) { tabPane.validate(); } if (!tabPane.isValid()) { TabbedPaneLayout layout = (TabbedPaneLayout)tabPane.getLayout(); layout.calculateLayoutInfo(); } if (tabsOverlapBorder) { paintContentBorder(g, tabPlacement, selectedIndex); } if (myShowHiddenTabsButton == null) { // WRAP_TAB_LAYOUT paintTabArea(g, tabPlacement, selectedIndex); } if (!tabsOverlapBorder) { paintContentBorder(g, tabPlacement, selectedIndex); } }