< prev index next >

src/java.desktop/share/classes/javax/swing/Autoscroller.java

Print this page

        

@@ -80,10 +80,11 @@
     }
 
     /**
      * Starts the timer targeting the passed in component.
      */
+    @SuppressWarnings("deprecation")
     private void start(JComponent c, MouseEvent e) {
         Point screenLocation = c.getLocationOnScreen();
 
         if (component != c) {
             _stop(component);

@@ -154,10 +155,11 @@
     //
     /**
      * ActionListener method. Invoked when the Timer fires. This will scroll
      * if necessary.
      */
+    @SuppressWarnings("deprecation")
     public void actionPerformed(ActionEvent x) {
         JComponent component = Autoscroller.component;
 
         if (component == null || !component.isShowing() || (event == null)) {
             _stop(component);
< prev index next >