-
Notifications
You must be signed in to change notification settings - Fork 0
/
controler_adminmenu.java
28 lines (26 loc) · 1.18 KB
/
controler_adminmenu.java
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
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import java.io.IOException;
public class controler_adminmenu {
public void check_stock() throws IOException {
FXMLLoader loader = new FXMLLoader(getClass().getResource("CHECKSTOCKADMIN.fxml")); //load next page
Parent root = loader.load();
Main.primaryStage.setScene(new Scene(root));
}
public void insert_stock() throws IOException {
FXMLLoader loader = new FXMLLoader(getClass().getResource("INSERTSTOCK.fxml")); //load the insert stock page
Parent root = loader.load();
Main.primaryStage.setScene(new Scene(root));
}
public void check_order() throws IOException {
FXMLLoader loader = new FXMLLoader(getClass().getResource("CUSTOMERORDER.fxml")); //load the check order page
Parent root = loader.load();
Main.primaryStage.setScene(new Scene(root));
}
public void back()throws IOException{
FXMLLoader loader = new FXMLLoader(getClass().getResource("LOGIN USER OR ADMIN.fxml")); //back
Parent root = loader.load();
Main.primaryStage.setScene(new Scene(root));
}
}