-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApp.java
More file actions
27 lines (25 loc) · 751 Bytes
/
Copy pathApp.java
File metadata and controls
27 lines (25 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
//talha
//osama 9/11
public class App
{
public static void main(String[] args) {
// loading page
loading load = new loading();
// Set up a timer to switch to the home page after 5 seconds
Timer timer = new Timer(4000, new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Close the loading frame
load.dispose();
// Load the home page
HomePage homePage = new HomePage();
homePage.setVisible(true);
}
});
timer.setRepeats(false);
timer.start();
}
}