Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JProgressBar;
import javax.swing.SwingConstants;

public class Main {
    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);
        progress.setString("value");
        System.out.println(progress.getString());
    }
}