-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
47 lines (32 loc) · 1.11 KB
/
Copy pathMain.java
File metadata and controls
47 lines (32 loc) · 1.11 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
//package java;
import Controller.Controller;
import Model.SistemaColas;
import Model.Distribucion;
import Model.DistribucionGamma;
import Model.DistribucionExponencial;
import Model.DistribucionUniforme;
import Model.DistribucionPoisson;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;
import java.awt.*;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
//Parent root = FXMLLoader.load(getClass().getResource("View/sample.fxml"));
FXMLLoader loader = new FXMLLoader(getClass().getResource("View/sample.fxml"));
Parent root = loader.load();
primaryStage.setTitle("Queues Simulation");
primaryStage.setScene(new Scene(root, 800, 600));
primaryStage.setResizable(false);
primaryStage.show();
Controller controller = loader.getController();
controller.setData();
}
public static void main(String[] args) {
launch(args);
}
}