mirror of
https://github.com/Akomry/makeyourownapp-jam.git
synced 2025-12-06 11:43:53 +00:00
refactor & release
This commit is contained in:
parent
c902241230
commit
0e48e9a529
4 changed files with 27 additions and 15 deletions
|
|
@ -3,16 +3,20 @@ package fr.emiko.graphicalapp;
|
|||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.image.Image;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
||||
public class DrawApplication extends Application {
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(DrawApplication.class.getResource("draw-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load(), 1280, 720);
|
||||
stage.setTitle("PixelWriter");
|
||||
stage.setTitle("Yet Another Collaborative Drawing App");
|
||||
stage.getIcons().add(new Image(Objects.requireNonNull(getClass().getResourceAsStream("icon.png"))));
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
|
|
|||
BIN
graphical-app/src/main/resources/fr/emiko/graphicalapp/icon.png
Normal file
BIN
graphical-app/src/main/resources/fr/emiko/graphicalapp/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 151 KiB |
Loading…
Add table
Add a link
Reference in a new issue