title: Passing variables into a Java ActionListener?
body: <p>Is there a way for me to pass variables into an actionlistener without calling them as final?  I'd like to use these two points inside some sort of timed way... I tried Thread.sleep() but for some reason it doesn't mesh well with the rest of the program. This is the format I'd really like to use, but I'm aware it might be impossible to make it work.
  I'm open to any and all advice. Thanks!</p>
  
  <p>(I'm sorry if this is a stupid question, I've looked for an answer but just can't seem to find one.)</p>
  
  <pre><code>public void timedMain(Point current, Point wanted){
            ActionListener taskPerformer = new ActionListener(){
                public void actionPerformed(ActionEvent evt){
                    System.out.println(wanted+" "+current);}};
                    actiontimer = new Timer(delay, taskPerformer);
                    actiontimer.start();}
  </code></pre>