Professional Documents
Culture Documents
package employeemanagementsystem;
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import java.time.Duration;
import javax.swing.*;
Splash(){
getContentPane().setBackground(Color.white);
setLayout(null);
//for heading
heading.setBounds(80,30,1200,60);
heading.setForeground(Color.red);
add(heading);
ImageIcon il = new ImageIcon(ClassLoader.getSystemResource("icons/meetingimage.png"));
Image i2 = il.getImage().getScaledInstance(1100,700,Image.SCALE_DEFAULT);
image.setBounds(50,100,1050,500 );
add(image);
clickhere.setBounds(400,400,300,70);
clickhere.setBackground(Color.GRAY);
clickhere.setForeground(Color.WHITE);
image.add(clickhere);
setSize(1170,650);
setLocation(50,50);
setVisible(true);
while(true){
heading.setVisible(false);
try {
Thread.sleep(500);
heading.setVisible(true);
try {
Thread.sleep(500);
new Splash();