提交 f31bd39a 编写于 作者: L lana

6888130: SwingSet2: Demo is not launching and throwing NPE.

Reviewed-by: prr
上级 9be4aae8
...@@ -3527,7 +3527,9 @@ public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants { ...@@ -3527,7 +3527,9 @@ public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants {
Integer index = (Integer) e.getNewValue(); Integer index = (Integer) e.getNewValue();
// remove the current index // remove the current index
// to let updateHtmlViews() insert the correct one // to let updateHtmlViews() insert the correct one
if (htmlViews != null) {
htmlViews.removeElementAt(index); htmlViews.removeElementAt(index);
}
updateHtmlViews(index); updateHtmlViews(index);
} else if (name == "tabLayoutPolicy") { } else if (name == "tabLayoutPolicy") {
BasicTabbedPaneUI.this.uninstallUI(pane); BasicTabbedPaneUI.this.uninstallUI(pane);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册