jdk/src/share/classes/javax/swing/JViewport.java
changeset 20157 cafca01a8e28
parent 20104 113755166f65
child 20458 f2423fb3fd19
equal deleted inserted replaced
20156:e19f062edcfe 20157:cafca01a8e28
   283     }
   283     }
   284 
   284 
   285 
   285 
   286 
   286 
   287     /**
   287     /**
   288      * Returns the L&F object that renders this component.
   288      * Returns the L&F object that renders this component.
   289      *
   289      *
   290      * @return a <code>ViewportUI</code> object
   290      * @return a <code>ViewportUI</code> object
   291      * @since 1.3
   291      * @since 1.3
   292      */
   292      */
   293     public ViewportUI getUI() {
   293     public ViewportUI getUI() {
   294         return (ViewportUI)ui;
   294         return (ViewportUI)ui;
   295     }
   295     }
   296 
   296 
   297 
   297 
   298     /**
   298     /**
   299      * Sets the L&F object that renders this component.
   299      * Sets the L&amp;F object that renders this component.
   300      *
   300      *
   301      * @param ui  the <code>ViewportUI</code> L&F object
   301      * @param ui  the <code>ViewportUI</code> L&amp;F object
   302      * @see UIDefaults#getUI
   302      * @see UIDefaults#getUI
   303      * @beaninfo
   303      * @beaninfo
   304      *        bound: true
   304      *        bound: true
   305      *       hidden: true
   305      *       hidden: true
   306      *    attribute: visualUpdate true
   306      *    attribute: visualUpdate true
   321         setUI((ViewportUI)UIManager.getUI(this));
   321         setUI((ViewportUI)UIManager.getUI(this));
   322     }
   322     }
   323 
   323 
   324 
   324 
   325     /**
   325     /**
   326      * Returns a string that specifies the name of the L&F class
   326      * Returns a string that specifies the name of the L&amp;F class
   327      * that renders this component.
   327      * that renders this component.
   328      *
   328      *
   329      * @return the string "ViewportUI"
   329      * @return the string "ViewportUI"
   330      *
   330      *
   331      * @see JComponent#getUIClassID
   331      * @see JComponent#getUIClassID