jdk/src/java.desktop/share/classes/javax/swing/JTabbedPane.java
changeset 28231 b608ffcaed74
parent 26037 508779ce6619
child 32483 851c672880a6
equal deleted inserted replaced
28230:f488c331f610 28231:b608ffcaed74
   331      * these cases.
   331      * these cases.
   332      *
   332      *
   333      * @see #addChangeListener
   333      * @see #addChangeListener
   334      * @see EventListenerList
   334      * @see EventListenerList
   335      */
   335      */
       
   336     @SuppressWarnings("deprecation")
   336     protected void fireStateChanged() {
   337     protected void fireStateChanged() {
   337         /* --- Begin code to deal with visibility --- */
   338         /* --- Begin code to deal with visibility --- */
   338 
   339 
   339         /* This code deals with changing the visibility of components to
   340         /* This code deals with changing the visibility of components to
   340          * hide and show the contents for the selected tab. It duplicates
   341          * hide and show the contents for the selected tab. It duplicates
   947      *            {@code (index < 0 || index >= tab count)}
   948      *            {@code (index < 0 || index >= tab count)}
   948      *
   949      *
   949      * @see #addTab
   950      * @see #addTab
   950      * @see #insertTab
   951      * @see #insertTab
   951      */
   952      */
       
   953     @SuppressWarnings("deprecation")
   952     public void removeTabAt(int index) {
   954     public void removeTabAt(int index) {
   953         checkIndex(index);
   955         checkIndex(index);
   954 
   956 
   955         Component component = getComponentAt(index);
   957         Component component = getComponentAt(index);
   956         boolean shouldChangeFocus = false;
   958         boolean shouldChangeFocus = false;
  1555      * @see #getComponentAt
  1557      * @see #getComponentAt
  1556      * @beaninfo
  1558      * @beaninfo
  1557      *    attribute: visualUpdate true
  1559      *    attribute: visualUpdate true
  1558      *  description: The component at the specified tab index.
  1560      *  description: The component at the specified tab index.
  1559      */
  1561      */
       
  1562     @SuppressWarnings("deprecation")
  1560     public void setComponentAt(int index, Component component) {
  1563     public void setComponentAt(int index, Component component) {
  1561         Page page = pages.get(index);
  1564         Page page = pages.get(index);
  1562         if (component != page.component) {
  1565         if (component != page.component) {
  1563             boolean shouldChangeFocus = false;
  1566             boolean shouldChangeFocus = false;
  1564 
  1567