Java JProgressBar createProgressBar()

Here you can find the source of createProgressBar()

Description

create Progress Bar

License

Apache License

Declaration

private static JProgressBar createProgressBar() 

Method Source Code

//package com.java2s;
/*//  w ww  .jav a 2 s.  co m
 * 
   SwingUtil.java
    
   Copyright 2004 KUBO Hiroya (hiroya@cuc.ac.jp).
    
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
    
   http://www.apache.org/licenses/LICENSE-2.0
    
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */

import javax.swing.JProgressBar;

public class Main {
    /**
     * @return
     */
    private static JProgressBar createProgressBar() {
        JProgressBar progressBar = new JProgressBar();
        progressBar.setIndeterminate(true);
        progressBar.setIndeterminate(false);
        progressBar.setMaximum(100);
        progressBar.setValue(100);
        return progressBar;
    }
}

Related

  1. createJProgressBar(String title)
  2. createPanel(String message, JProgressBar progressBar)
  3. excutePost(String targetURL, String urlParameters, JProgressBar progress)
  4. generateProgressBarFor(Object... objs)
  5. incProgressBar(JProgressBar jpb)
  6. printProgress(JProgressBar prBar, int progressValue)