* function : Realization of flash screen interface
 * */
package com.mhl.view;
import java.awt.*;
import javax.swing.*;
public class Index extends JWindow implements Runnable{
// Define components related to the progress bar
JProgressBar jpb;// Define progress bar
JLabel jl1;// Use to place a picture in the north of the form , South is the progress bar
int width,height;// Used to obtain the resolution size of the display screen
public static void main(String []args){
Index index=new Index();
// establish index thread
Thread t=new Thread(index);
// Start thread
// Constructor
public Index()
// create label , And put a picture on the label
jl1=new JLabel(new ImageIcon("image/index/index.gif"));

// Create progress bar
jpb=new JProgressBar();
// Set progress bar properties
jpb.setStringPainted(true);// Display current progress value information
jpb.setIndeterminate(false);// Make sure that the progress bar does not scroll back and forth after execution
jpb.setBorderPainted(false);// Set progress bar border not to display
jpb.setBackground(Color.darkGray);// Set the background color of the progress bar

// add component

// Set form properties
// Set the position of the form display
// Set window display
// Progress bar thread's run method , Properties for setting threads
public void run() {

// Define an array , Store data needed for progress bar display
for(int i=0;i<progressValue.length;i++)
try {
// dormancy 1 second , Reexecution
} catch (InterruptedException e) {
// TODO Auto-generated catch block
jpb.setValue(progressValue[i]);// Get the progress value in the array
// When progress is complete , Perform the appropriate action , Such as switching to other windows , At the same time, close the progress bar window, etc
new Login();
// Close progress bar window

©2019-2020 Toolsou All rights reserved,
java Four functional interfaces ( a key , simple )os Simple use of module HashMap Explain in detail html Writing about cherry trees , Writing about cherry trees It's unexpected Python Cherry tree (turtle The gorgeous style of Library ) computer network --- Basic concepts of computer network ( agreement , system ) Some East 14 Pay change 16 salary , Sincerity or routine ? Browser kernel ( understand )