forked from AdvancedProgramming1404/HW-07-JavaFX
adding buttons repeat and mute
This commit is contained in:
@@ -18,18 +18,27 @@ public class Main extends Application {
|
||||
controller.musicsListView.getItems().addAll(
|
||||
new Song("Blinding Lights", "The Weeknd"),
|
||||
new Song("Flowers", "Miley Cyrus"),
|
||||
new Song("As It Was", "Harry Styles")
|
||||
new Song("As It Was", "Harry Styles"),
|
||||
new Song("Comme des enfants", "Coert De Pirate"),
|
||||
new Song("Slow Down", "GRAE"),
|
||||
new Song("Cigarettes out the window", "TV Girl"),
|
||||
new Song("Shape of My Heart", "Sting"),
|
||||
new Song("deja vu", "Olivia Rodirgo"),
|
||||
new Song("Do It To It", "Acraze"),
|
||||
new Song("Bones", "Imagine Dragons"),
|
||||
new Song("Bunker", "Balthazar")
|
||||
);
|
||||
|
||||
controller.setupListView(controller.musicsListView);
|
||||
|
||||
Scene scene = new Scene(root, 600, 500);
|
||||
Scene scene = new Scene(root, 500, 600);
|
||||
scene.getStylesheets().add(
|
||||
getClass().getResource("/css/light.css").toExternalForm()
|
||||
);
|
||||
|
||||
primaryStage.setTitle("Music Player");
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.setResizable(false);
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user