Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JProgressBar;

public class Main {
    public static void main(String[] argv) throws Exception {
        int minimum = 0;
        int maximum = 100;
        JProgressBar progress = new JProgressBar(minimum, maximum);
        int newValue = 10;
        int newMin = 0;
        int newMax = 100;
        progress.getModel().setRangeProperties(newValue, 0, newMin, newMax, false);
    }
}