I was wondering how I could set my JProgressBar to use the two available styles, as NetBeans does.
I've noticed in NetBeans, that when debugging or building a program, the progress bar at the bottom-right of the screen first uses the indeterminate style, but with blocks instead of the oscillations and then switches over to the 'standard' style.
I'd like my program to use the oscillating style when the server is starting,
and then the blocks style when the server is running.
How could I achieve this?
Pictures: