bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/25478] New: typo in BasicScrollPaneUI prevents FileChooser fr


From: ctl at highsorcery dot com
Subject: [Bug swing/25478] New: typo in BasicScrollPaneUI prevents FileChooser from working properly
Date: 18 Dec 2005 09:57:04 -0000

In BasicScrollPaneUI, the function updateViewport should be:



  protected void updateViewport(PropertyChangeEvent ev)
  {
    JViewport oldViewport = (JViewport) ev.getOldValue();
    oldViewport.removeChangeListener(viewportChangeListener);
    JViewport newViewport = (JViewport) ev.getNewValue();
    newViewport.addChangeListener(viewportChangeListener);
    syncScrollPaneWithViewport();
  }

there was a typo where the old viewport was getting the changeListener. Also,
the scroll pane should be synced with the new viewport in case the viewport
doesn't get changed immediately.


-- 
           Summary: typo in BasicScrollPaneUI prevents FileChooser from
                    working properly
           Product: classpath
           Version: 0.20
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: swing
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ctl at highsorcery dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25478





reply via email to

[Prev in Thread] Current Thread [Next in Thread]