/[classpath]/classpath/javax/swing/JScrollPane.java
ViewVC logotype

Diff of /classpath/javax/swing/JScrollPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mark, Fri Jul 30 20:21:19 2004 UTC revision 1.13 by mark, Sat Sep 4 21:14:06 2004 UTC
# Line 509  public class JScrollPane Line 509  public class JScrollPane
509            else            else
510              {              {
511                // otherwise we got a change update from either the VSB or                // otherwise we got a change update from either the VSB or
512                // HSB model, and we need to update the viewport position to                // HSB model, and we need to update the viewport positions of
513                  // both the main viewport and any row or column headers to
514                // match.                // match.
515    
516                int xpos = 0;                int xpos = 0;
# Line 526  public class JScrollPane Line 527  public class JScrollPane
527                if (vp != null                if (vp != null
528                    && vp.getViewPosition() != pt)                    && vp.getViewPosition() != pt)
529                  vp.setViewPosition(pt);                  vp.setViewPosition(pt);
530    
531                  pt.x = 0;
532    
533                  if (rowHeader != null
534                      && rowHeader.getViewPosition() != pt)
535                    rowHeader.setViewPosition(pt);
536                  
537                  pt.x = xpos;
538                  pt.y = 0;
539    
540                  if (columnHeader != null
541                      && columnHeader.getViewPosition() != pt)
542                    columnHeader.setViewPosition(pt);
543    
544              }              }
545          }          }
546        };        };

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26