# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: F:\Sources\MainTrunk\core\output2\src\org\netbeans\core\output2\ui # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: CloseButtonTabbedPane.java *** F:\Sources\MainTrunk\core\output2\src\org\netbeans\core\output2\ui\CloseButtonTabbedPane.java Base (1.8) --- F:\Sources\MainTrunk\core\output2\src\org\netbeans\core\output2\ui\CloseButtonTabbedPane.java Locally Modified (Based On 1.8) *************** *** 55,60 **** --- 55,69 ---- } private Component sel() { + // workaround for JDK bug 6420152 + int tabC = getTabCount(); + int selIndex = getSelectedIndex(); + System.out.println("sel index: " + selIndex + " while tab count: " + tabC); + if (selIndex != -1 && selIndex >= tabC) { + // JDK bug 6420152 - selection model and tab model not in sync + System.out.println("NOT in SYNC!!!"); + return this; + } Component c = getSelectedComponent(); return c == null ? this : c; }