I am new to Swing so I have a question concerning JProgressBar.
I have a task to do that takes about 5 minutes ( updating a database ). I would like to add a progressBar. I have copied a few classes from http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
I have three classes LongTask.java, SwingWorker.java and ProgressBarDemo.java.
I have my main class that update the database from a menu button and I have another class that execute the task.
Now I am a bit lost. How do I connect them together so that it works.
Where do ProgressBarDemo.java knows the task to do