< prev index next >

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

Print this page

        

@@ -331,10 +331,11 @@
      * 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,10 +948,11 @@
      *            {@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,10 +1557,11 @@
      * @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 >