1. Progress Bar refreshing! coderanch.comHi, I have a JProgressBar on my status pane. As I progress I need to set the value on the Progress Bar so I call this method... public void setValue(int value){ SwingUtilities.invokeLater(new Runnable(){ public void run(){ m_progressBar.setValue(value); m_progressBar.updateUI(); } }); } This should repaint the ProgressBar with the value as the rest of the task is in progress, but it does ... |
2. Refreshing a JProgressBar coderanch.comHi, I am having trouble refreshing the progress bar in my application. Its value is being updated, however the bar does not move... I set up my progress bar: public StatusBar(){ pbar = new JProgressBar(); pbar.setMinimum(MYMINIMUM); pbar.setMaximum(MYMAXIMUM); pbar.setValue(5); //to show that some progresss is underway initially add(pbar); } Then in the main class I set the progressbar up in a pop ... |
3. Force JProgressBar to Refresh coderanch.comAs I understand it, if I give a program a long sequence of tasks, the JProgressBar will not update until it finishes. In my program there is a method that is executed a certain number of times in a row. I want the bar to update every time the method is run. How can I force the UI to update whenever ... |