Load thread with JProgressBar
Does someone know how I can load a thread with a JProgressBar?
I mean, I've a simple thread.
I wanna see on the JProgressBar at how many percent it is.
class myLoadingThread extends Thread
public String s = new String;
public void run()
for(int i=0; i<=50000; i++)
String temp = new String[s.length+1];
for(int j=0; j<i; j++)
temp[j] = s[j];
temp[i] = "test";
s = temp;
Does someone know how I can do this?