进度条用作健康栏 [英] Progress Bar used as Health Bar
本文介绍了进度条用作健康栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在制作一个带有侧边栏的java游戏,显示玩家的健康状况。我希望条形图像一个进度条,如下图所示:
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:
进度条是否足以完成此任务?如果没有,会是什么?
Would a progress bar be capable enough to accomplish this? If not, what will?
推荐答案
如果你想要一个官方答案,那么是的,JProgressBar可以很容易地做到这一点。我建议您尝试一下,让我们知道它是如何工作的,特别是如果您有任何问题。
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.
这篇关于进度条用作健康栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文