I'm working on a program to upload some files to an ftp. I created a thread the starts the upload when the upload button is pushed. When the upload button is pushed the GUI freezes because it is uploading. What change would I have to make to get the GUI responsive so I can update the progress bar. Here is what method that creates the thread to upload the file. This is the method for the upload button
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
up.upload(jTextField1.getText());
upload = new UploadThread(up,jTextField1.getText());
UploadThr = new Thread(upload);
UploadThr.start();
}
This is called in the Gui. I need to get the GUI responsive while it is uploading.
Thanks