Example usage for javax.swing JProgressBar setMinimum

List of usage examples for javax.swing JProgressBar setMinimum

Introduction

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

Prototype

@BeanProperty(bound = false, preferred = true, description = "The progress bar's minimum value.")
public void setMinimum(int n) 

Source Link

Document

Sets the progress bar's minimum value (stored in the progress bar's data model) to n.

Usage

From source file:org.jets3t.gui.skins.SkinsFactory.java

/**
 * @param itemName//from w  w  w.j  a va  2s. c  o m
 * the name of this specific item in the GUI, which may be used to determine how the skinned
 * item should look or behave.
 *
 * @return
 * a <code>SkinnedJProgressBar</code> class implementation for the current skin, or a default
 * JProgressBar if no skin-specific implementation is available.
 */
public JProgressBar createSkinnedJProgressBar(String itemName, int min, int max) {
    JProgressBar jProgressBar = (JProgressBar) instantiateClass(buildSkinnedClassName("SkinnedJProgressBar"),
            itemName);
    if (jProgressBar != null) {
        jProgressBar.setMinimum(min);
        jProgressBar.setMaximum(max);
        return jProgressBar;
    } else {
        jProgressBar = new JProgressBar(min, max);
        return jProgressBar;
    }
}