Custom Java Swing Meter Control

后端 未结 2 639
自闭症患者
自闭症患者 2021-01-15 17:09

I\'m trying to make a custom swing control that is a meter. Swing Meter http://dl.dropbox.com/u/2363305/Programming/Java/swing_meter.gif

The arrow will move up and d

2条回答
  •  花落未央
    2021-01-15 17:12

    You could use a JSlider and use setValue(int n) to set the value whenever you need. You can also change the default appearance, so you get an arrow and a gradient as you want.

提交回复
热议问题