0

It's supposed to take values between +100 and -100 (or something like that), and display this visually like so: https://i.stack.imgur.com/LLaz6.jpg My first idea were progress bars, but they seem to be unable to start anywhere but the start, and I need it to start in the middle.

1 Answers1

4

JSlider with custom background is more suitable than JProgressBar. See How to Use Sliders for some examples.

tenorsax
  • 21,123
  • 9
  • 60
  • 107
  • @user2247969 see [Painting the slider icon of JSlider](http://stackoverflow.com/q/6992633/1048330) for some examples on styling a slider. – tenorsax Mar 15 '14 at 18:30