I recently started working with JavaFX, and started making FX versions of my custom Swing components. One of them was a count down timer, in which a JProgressBar
was involved. I would draw the current time onto the bar using it's setString(String)
method. Unfortunately, there does not seem to be such a method with JavaFX's ProgressBar
. The closest thing I saw to what I was looking for was this:
(source)
I don't know if this would require a whole new custom component, or just a class like java.awt.Graphics
.
Any help would be much appreciated. Thanks :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…