JDK-4808764 : Autoscroller performance improvements
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2003-01-27
  • Updated: 2003-08-12
  • Resolved: 2003-08-12
Related Reports
Duplicate :  
Description
Autoscroller is currently rather heavy and could be improved by:
. Making it a singleton thereby reducing a JComponent field and indirectly
  sharing the Timer that was contained in it.
. Rather than have Autoscroller implement MouseListener JComponent should
  forward the mouse released event, thereby making it unnecessary for
  Autoscroller to implement MouseListener and be added as a MouseListener.
. Make Autoscroller implement ActionListener instead of using an anonymous
  inner class.

Comments
EVALUATION Description says it all. In order to no longer add Autoscroller as a MouseListener JComponent will need to override processMouseEvent and forward the event to the Autoscroller. ###@###.### 2003-01-27 This work was done under the umbrella performance bug 4864304, closing as a duplicate. ###@###.### 2003-08-12
27-01-2003