title: A swingworker does not work
body: <p>In my application I have two different swingworkers (they do two different jobs). The first one works perfectly, while the latter does not.</p>
  
  <p>What I can do to fix it?</p>
  
  <pre><code>class worker extends SwingWorker&lt;Boolean, String&gt; {     
      @Override
       protected Boolean doInBackground() throws Exception {
          getstub().registration(name.getText(), surname.getText());
        return true;
       }
  
       protected void done() {
        boolean status;
        try {
         status = get();
         regstatus.setText("registration status: " + status);
        } catch (InterruptedException e) {
        } catch (ExecutionException e) {
        }
       }
  }
  
  
  class worker1 extends SwingWorker&lt;Boolean, String&gt; {        
      @Override
       protected Boolean doInBackground() throws Exception {
          int i = Integer.parseInt(id.getText());
          double r = Double.parseDouble(range.getText());
          double la = Double.parseDouble(lat.getText());
          Coordinate lat = new DegreeCoordinate(la);
          double lo = Double.parseDouble(lon.getText());
          Coordinate lon = new DegreeCoordinate(lo);
          System.out.println("id: "+i+" lat: "+la+ " lon: "+lo+" type: "+type.getText()+ " range: "+r);
          getstub().request(i, lat ,lon ,type.getText(), r);          
          return true;
       }
  
       protected void done() {
  
        boolean status;
        try {
         status = get();
         reqstatus.setText("request status: " + status);
        } catch (InterruptedException e) {
        } catch (ExecutionException e) {
        }
       }
  }
  </code></pre>
  
  <p>and two jbuttons that start the worker</p>
  
  <pre><code> private JButton register = new JButton("Register");
   register.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent arg0) {
                new worker().execute();
             }
            });
  
  private JButton search = new JButton("Search now");
  search.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent arg0) {
                     reqstatus.setText("I'm searching...");
                     new worker1().execute();                    
                 }
                });
  </code></pre>