Example usage for javax.swing JProgressBar getString

List of usage examples for javax.swing JProgressBar getString

Introduction

In this page you can find the example usage for javax.swing JProgressBar getString.

Prototype

public String getString() 

Source Link

Document

Returns a String representation of the current progress.

Usage

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());
}