< prev index next >

src/java.desktop/share/classes/javax/swing/JTabbedPane.java

Print this page

        

*** 331,340 **** --- 331,341 ---- * these cases. * * @see #addChangeListener * @see EventListenerList */ + @SuppressWarnings("deprecation") protected void fireStateChanged() { /* --- Begin code to deal with visibility --- */ /* This code deals with changing the visibility of components to * hide and show the contents for the selected tab. It duplicates
*** 947,956 **** --- 948,958 ---- * {@code (index < 0 || index >= tab count)} * * @see #addTab * @see #insertTab */ + @SuppressWarnings("deprecation") public void removeTabAt(int index) { checkIndex(index); Component component = getComponentAt(index); boolean shouldChangeFocus = false;
*** 1555,1564 **** --- 1557,1567 ---- * @see #getComponentAt * @beaninfo * attribute: visualUpdate true * description: The component at the specified tab index. */ + @SuppressWarnings("deprecation") public void setComponentAt(int index, Component component) { Page page = pages.get(index); if (component != page.component) { boolean shouldChangeFocus = false;
< prev index next >