Dave Glasser said:
you must make sure that the inputs to progress monitor are correct. A
NULL value where there is supposed to be information would be an
issue. Also, if your progress meter is run by values derived by the
program as to how far along in the boot up process it is, print them
to the console as debugging statements. If not, then you need to
create data for the progress meter to parse and show. This can be done
a number of ways, but the easiest is with a little snippet of code
like this:
//in an inner class, most likely in the constructor for the
JTabbedPane
public ProgressTimer()
{
class TimeMover implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
//do your progress incrementation or whatever you need
to do
}
}
TimeMover listener = new TimeMover();
final int DELAY = 10; //number of miliseconds.
Timer t = new Timer(DELAY, listener);
t.start();
}
now this is just a basic timer class that will do nothing every 10
miliseconds. You have to decide how fast the progress meter will go,
or if it will run just an image that animates (thats what i would do)
and stops when the JTabbedPane is done paneing.
I hope that this gets you going.
Andrew