I can\'t update my progressbar... this is my code
Thread t=new Thread(new Runnable(){
public void run(){
int i=1;
jProgBar.setMin
The best advice for your situation is to use SwingWorker. Check out the API at http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html
Override process method to update value of progress bar ( then it will be done correctly on EDT)
More info can be obtained at http://java.sun.com/products/jfc/tsc/articles/threads/threads2.html