jdk/src/share/classes/javax/swing/JViewport.java
changeset 21278 ef8a3a2a72f2
parent 20458 f2423fb3fd19
child 22574 7f8ce0c8c20a
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   461                     // true, the backing store is blitted.  This fails
   461                     // true, the backing store is blitted.  This fails
   462                     // if between the time setViewPosition is invoked
   462                     // if between the time setViewPosition is invoked
   463                     // and paint is received another repaint is queued
   463                     // and paint is received another repaint is queued
   464                     // indicating part of the view is invalid. There
   464                     // indicating part of the view is invalid. There
   465                     // is no way for JViewport to notice another
   465                     // is no way for JViewport to notice another
   466                     // repaint has occured and it ends up blitting
   466                     // repaint has occurred and it ends up blitting
   467                     // what is now a dirty region and the repaint is
   467                     // what is now a dirty region and the repaint is
   468                     // never delivered.
   468                     // never delivered.
   469                     // It just so happens JTable encounters this
   469                     // It just so happens JTable encounters this
   470                     // behavior by way of scrollRectToVisible, for
   470                     // behavior by way of scrollRectToVisible, for
   471                     // this reason scrollUnderway is set to false
   471                     // this reason scrollUnderway is set to false
   583 
   583 
   584     /**
   584     /**
   585      * Returns the insets (border) dimensions as (0,0,0,0), since borders
   585      * Returns the insets (border) dimensions as (0,0,0,0), since borders
   586      * are not supported on a <code>JViewport</code>.
   586      * are not supported on a <code>JViewport</code>.
   587      *
   587      *
   588      * @return a <code>Rectange</code> of zero dimension and zero origin
   588      * @return a <code>Rectangle</code> of zero dimension and zero origin
   589      * @see #setBorder
   589      * @see #setBorder
   590      */
   590      */
   591     public final Insets getInsets() {
   591     public final Insets getInsets() {
   592         return new Insets(0, 0, 0, 0);
   592         return new Insets(0, 0, 0, 0);
   593     }
   593     }