Electricity-Billing-System\src\electricity\billing\system\Splash.
java
1 package [Link];
2
3 import [Link].*;
4 import [Link].*;
5
6 public class Splash extends JFrame implements Runnable {
7 Thread t;
8 Splash() {
9
10 ImageIcon i1 = new ImageIcon([Link]("icon/[Link]"));
11 Image i2 = [Link]().getScaledInstance(730, 550, Image.SCALE_DEFAULT);
12 ImageIcon i3 = new ImageIcon(i2);
13 JLabel image = new JLabel(i3);
14 add(image);
15
16 setVisible(true);
17
18 int x = 1;
19 for (int i = 2; i < 600; i+=4, x+=1) {
20 setSize(i + x, i);
21 setLocation(700 - ((i + x)/2), 400 - (i/2));
22 try {
23 [Link](5);
24 } catch (Exception e) {
25 [Link]();
26 }
27 }
28
29 t = new Thread(this);
30 [Link]();
31
32 setVisible(true);
33 }
34
35 public void run() {
36 try {
37 [Link](7000);
38 setVisible(false);
39
40 // login frame
41 new Login();
42 } catch (Exception e) {
43 [Link]();
44 }
45 }
46
47 public static void main(String[] args) {
48 new Splash();
49 }
50 }
51