Ok, so I found this works when I put it in the ButtonListener class:
progressBar = new ProgressBar(10);
Runnable runnable = new Thread(){
public void run(){
//cleanSource();...
Type: Posts; User: aussiemcgr
Ok, so I found this works when I put it in the ButtonListener class:
progressBar = new ProgressBar(10);
Runnable runnable = new Thread(){
public void run(){
//cleanSource();...
Ok, so based on what I'm reading, in order to create a Thread, i need to send it a runable object, which would be the object that contains all my methods for what I am trying to do. But, due to this...
How do I do that?
I am creating a program that takes several minutes to run and I want to either tell the user about updates via a textbox at the bottom or via a JProgressBar. Unfortunately, the GUI seems to lock up...