Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void GO(java.awt.event.MouseEvent evt) {
- new Thread(new Runnable() {
- @Override
- public void run() {
- c = new FTPClient();
- if(jButtonUpload.getText() == "GO"){
- jButtonUpload.setText("STOP");
- for(i=0; i<e.getRowCount();i++){
- System.out.println(e.getValueAt(i, 4).toString());
- FTPUploadFichier.main(new Process(files[i]),FtpConnexion.connexion("****"),i,jTable1);
- jTable1.repaint();
- }
- }else{
- jButtonUpload.setText("GO");
- }
- SwingUtilities.invokeLater(new Runnable() {
- @Override
- public void run() {
- }
- });
- }
- }).start();
- }
Add Comment
Please, Sign In to add comment