1

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,

enter image description here

and then the blocks style when the server is running.

enter image description here

How could I achieve this?

Pictures:

Blocks Style Standard Style

mKorbel
  • 109,525
  • 20
  • 134
  • 319
SimonC
  • 1,547
  • 1
  • 19
  • 43
  • 1
    I'd be to use JLayer instead to bothering with CustomUI, maybe is this component and its UI accessible for free usage, you have to check – mKorbel Dec 23 '13 at 20:58
  • Could be an artifact; also consider a [`sizeVariant`](http://stackoverflow.com/a/2900157/230513). – trashgod Dec 23 '13 at 22:16

0 Answers0