Progress Bar used as Health Bar

2019-02-24 23:47发布

I am making a java game that has a sidebar that displays a player's health. I want the bar to be like a progress bar which is along the lines of the picture below:

enter image description here

Would a progress bar be capable enough to accomplish this? If not, what will?

1条回答
We Are One
2楼-- · 2019-02-25 00:00

If you want an "official" answer, then yes, a JProgressBar can do this easily. I suggest that you give it a try and let us know how it works out, especially if you have any problems with it.

查看更多
登录 后发表回答