Nimbus - Different JProgressBar Styles

笑着哭i 提交于 2019-12-11 05:40:34

问题


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:

Blocks Style Standard Style

来源:https://stackoverflow.com/questions/20750708/nimbus-different-jprogressbar-styles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!