Java

ProgressBar using Java

This java projects tutorial will teach you how to make the java progressbar.once the progress bar reached 100% it will show the Main Form.i am giving many java projects with source code.

import java.util.logging.Level;
import java.util.logging.Logger;

public class pro extends javax.swing.JFrame {

    public pro() {
        initComponents();
    }

  public static void main(String args[]) {

 pro sc = new pro();
        /* Create and display the form */        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                sc .setVisible(true);
            }
        });
        
         form1 s = new form1();
            try {
                  for(int i =0;i<=100;i++){
                Thread.sleep(100);
                sc.bar.setValue(i);
                sc.txtpro.setText(Integer.toString(i)+"%");
                if(i==100){
                     sc.setVisible(false);
                  // inter.setVisible(true);
                     sc.dispose();
                }
                
                  }
            } catch (InterruptedException ex) {
                Logger.getLogger(pro.class.getName()).log(Level.SEVERE, null, ex);
            }
                 s.setVisible(true);
        sc.dispose();   
    }

i have attached the video link below. which will do this tutorials step by step.

Related Posts

Point of sales System with Bill Print Using Java and Mysql
https://www.tutussfunny.com/point-of-sales-system-with-bill-print-using-java-and-mysql/

 

 

admin

Recent Posts

Creating Grocery Inventory App Using React

Introduction to Grocery Inventory Apps Managing grocery inventory can be a daunting task, but with…

7 hours ago

Fish Inventory Shop Management System in Angular

This article explain how to make a Fish Inventory Management App in Angular.this app explain…

6 days ago

Fish Inventory Management with React

Introduction to Fish Inventory Management In the aquaculture industry, managing fish inventory is crucial for…

1 week ago

Java GUI CRUD for Beginners

Introduction to Java GUI CRUD Java is a powerful programming language widely used for building…

1 week ago

Creating Beautiful Login Form Design Using React

Introduction to Login Form Design Designing an effective and beautiful login form is crucial for…

2 weeks ago

Creating Responsive Login Form with React

Introduction In today creating a responsive login form is essential for providing a seamless user…

2 weeks ago