jdk/src/share/classes/javax/swing/JViewport.java
changeset 22574 7f8ce0c8c20a
parent 21278 ef8a3a2a72f2
child 23006 7cb4567eb213
child 23280 df31f522531f
equal deleted inserted replaced
22573:8f0344f13b7f 22574:7f8ce0c8c20a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   100  *
   100  *
   101  * @author Hans Muller
   101  * @author Hans Muller
   102  * @author Philip Milne
   102  * @author Philip Milne
   103  * @see JScrollPane
   103  * @see JScrollPane
   104  */
   104  */
       
   105 @SuppressWarnings("serial") // Same-version serialization only
   105 public class JViewport extends JComponent implements Accessible
   106 public class JViewport extends JComponent implements Accessible
   106 {
   107 {
   107     /**
   108     /**
   108      * @see #getUIClassID
   109      * @see #getUIClassID
   109      * @see #readObject
   110      * @see #readObject
  1294      * the same version of Swing.  As of 1.4, support for long term storage
  1295      * the same version of Swing.  As of 1.4, support for long term storage
  1295      * of all JavaBeans™
  1296      * of all JavaBeans™
  1296      * has been added to the <code>java.beans</code> package.
  1297      * has been added to the <code>java.beans</code> package.
  1297      * Please see {@link java.beans.XMLEncoder}.
  1298      * Please see {@link java.beans.XMLEncoder}.
  1298      */
  1299      */
       
  1300     @SuppressWarnings("serial") // Same-version serialization only
  1299     protected class ViewListener extends ComponentAdapter implements Serializable
  1301     protected class ViewListener extends ComponentAdapter implements Serializable
  1300     {
  1302     {
  1301         public void componentResized(ComponentEvent e) {
  1303         public void componentResized(ComponentEvent e) {
  1302             fireStateChanged();
  1304             fireStateChanged();
  1303             revalidate();
  1305             revalidate();
  1763      * the same version of Swing.  As of 1.4, support for long term storage
  1765      * the same version of Swing.  As of 1.4, support for long term storage
  1764      * of all JavaBeans&trade;
  1766      * of all JavaBeans&trade;
  1765      * has been added to the <code>java.beans</code> package.
  1767      * has been added to the <code>java.beans</code> package.
  1766      * Please see {@link java.beans.XMLEncoder}.
  1768      * Please see {@link java.beans.XMLEncoder}.
  1767      */
  1769      */
       
  1770     @SuppressWarnings("serial") // Same-version serialization only
  1768     protected class AccessibleJViewport extends AccessibleJComponent {
  1771     protected class AccessibleJViewport extends AccessibleJComponent {
  1769         /**
  1772         /**
  1770          * Get the role of this object.
  1773          * Get the role of this object.
  1771          *
  1774          *
  1772          * @return an instance of AccessibleRole describing the role of
  1775          * @return an instance of AccessibleRole describing the role of