Guest User

Untitled

a guest
Jul 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1.  private void GO(java.awt.event.MouseEvent evt) {                    
  2.    
  3.      new Thread(new Runnable() {
  4.             @Override
  5.       public void run() {
  6.              
  7.           c = new FTPClient();
  8.          if(jButtonUpload.getText() == "GO"){
  9.             jButtonUpload.setText("STOP");
  10.             for(i=0; i<e.getRowCount();i++){
  11.                     System.out.println(e.getValueAt(i, 4).toString());
  12.                      FTPUploadFichier.main(new Process(files[i]),FtpConnexion.connexion("****"),i,jTable1);
  13.  
  14.                     jTable1.repaint();
  15.             }
  16.                    
  17.          }else{
  18.                         jButtonUpload.setText("GO");
  19.          }
  20.          
  21.         SwingUtilities.invokeLater(new Runnable() {
  22.                     @Override
  23.           public void run() {
  24.                              
  25.           }
  26.         });
  27.       }
  28.   }).start();
  29.          
  30.          
  31.          
  32.     }
Add Comment
Please, Sign In to add comment