List of usage examples for javax.swing JProgressBar getString
public String getString()
From source file:Main.java
public static void main(String[] argv) throws Exception { int minimum = 0; int maximum = 100; JProgressBar progress = new JProgressBar(minimum, maximum); progress.setOrientation(SwingConstants.HORIZONTAL); int newValue = 33; progress.setValue(newValue);/* ww w .j a va 2 s . c om*/ progress.setString("value"); System.out.println(progress.getString()); }