-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.java
43 lines (30 loc) · 1008 Bytes
/
App.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.mycompany.csc365p1;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
/**
* JavaFX App
*/
public class App extends Application {
final int WIDTH = 1200;
final int HEIGHT = 800;
public static DatabaseConnection dbConn;
@Override
public void start(Stage stage) {
dbConn = new DatabaseConnection();
CSVHelper csvh = new CSVHelper();
//csvh.importSongs();
TitleScreen titleScreen = new TitleScreen();
Image icon = new Image(getClass().getResourceAsStream("assets/musicIcon.png"));
stage.getIcons().add(icon);
stage.setTitle("Music Library");
Scene scene = new Scene(titleScreen.getRoot(), WIDTH, HEIGHT);
stage.setScene(scene);
scene.getStylesheets().add(getClass().getResource("styles.css").toExternalForm());
stage.show();
}
public static void main(String[] args) {
launch();
}
}