sads

Monday, 20 February 2017

JPROGRESS BAR




import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JProgressBar;

public class ProgressBarExample extends JFrame{
   
    JFrame jf;
    int min=50,max=300;
    JProgressBar pbar;
   
    public ProgressBarExample() {
        // TODO Auto-generated constructor stub
    jf=new JFrame();
    setTitle("ProgressBar");
    setVisible(true);
    setSize(350,200);
    setDefaultCloseOperation(jf.EXIT_ON_CLOSE);
    setLayout( new FlowLayout());
   
   
   
    pbar=new JProgressBar(JProgressBar.HORIZONTAL,min,max);
   
    pbar.setValue(220);
    pbar.setStringPainted(true);
   
   
    add(pbar);
   
   
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub
    ProgressBarExample pbe=new ProgressBarExample();
    }

}
 

4 comments:

  1. Thanks for providing such a useful information about java course

    ReplyDelete
  2. "very nice and amazing blog you have written i have read all this blog many things mentioned in this blog please keep updating the blog and posting because Dot net is a very easy and simple language. it is easy to understand and use and also support multiple languages.
    Dot Net training in Chandigarh
    Data Science training Chandigarh
    Big data training Mohali"

    ReplyDelete
  3. Its a wonderful post and very helpful, thanks for all this information.
    Java Training in Delhi

    ReplyDelete