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();
}
}
Thanks for providing such a useful information about java course
ReplyDelete"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.
ReplyDeleteDot Net training in Chandigarh
Data Science training Chandigarh
Big data training Mohali"
Its a wonderful post and very helpful, thanks for all this information.
ReplyDeleteJava Training in Delhi
smm panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
Https://www.hirdavatciburada.com/
beyazesyateknikservisi.com.tr
servis
TİKTOK HİLE İNDİR