Making a music program

This commit is contained in:
2026-06-09 13:58:56 +03:30
parent fa5f8ab267
commit b5959e5329
8 changed files with 202 additions and 7 deletions
+4 -1
View File
@@ -3,6 +3,7 @@ package sbu.javafx;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import java.io.IOException;
@@ -16,7 +17,9 @@ public class MusicApp extends Application {
Scene scene = new Scene(fxmlLoader.load());
stage.setTitle("Music Player");
stage.setScene(scene);
//TODO: add icon to the stage
stage.setWidth(900);
stage.setHeight(500);
stage.getIcons().add(new Image(getClass().getResourceAsStream("icon.png")));
stage.show();
}