-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (29 loc) · 1010 Bytes
/
Copy pathMain.java
File metadata and controls
35 lines (29 loc) · 1010 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
27
28
29
30
31
32
33
34
35
package application;
import java.util.ArrayList;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.fxml.FXMLLoader;
public class Main extends Application {
public static ArrayList <Customer>customer_list=new ArrayList<Customer>();
public static ArrayList <employees> employee_list= new ArrayList <employees>();
public static String first_name,last_name,Age,Address,ID_no;
public static String username,password;
public static Stage ApplicationWindow;
@Override
public void start(Stage primaryStage) {
try {
AnchorPane root = (AnchorPane)FXMLLoader.load(getClass().getResource("Login_page.fxml"));
Scene scene = new Scene(root,400,400);
ApplicationWindow=primaryStage;
ApplicationWindow.setScene(scene);
ApplicationWindow.show();
} catch(Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
launch(args);
}
}