diff --git a/src/main/java/net/lucraft/converter/gui/ConverterApplication.java b/src/main/java/net/lucraft/converter/gui/ConverterApplication.java index c664d91..fff02b2 100644 --- a/src/main/java/net/lucraft/converter/gui/ConverterApplication.java +++ b/src/main/java/net/lucraft/converter/gui/ConverterApplication.java @@ -3,11 +3,13 @@ import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; +import javafx.scene.image.Image; import javafx.stage.Screen; import javafx.stage.Stage; import net.lucraft.converter.Config; import java.io.IOException; +import java.util.Objects; public class ConverterApplication extends Application { @Override @@ -16,8 +18,7 @@ public void start(Stage stage) throws IOException { Screen screen = Screen.getPrimary(); Scene scene = new Scene(fxmlLoader.load(), screen.getBounds().getWidth() / 2, screen.getBounds().getHeight() / 2); stage.setTitle("Converter - Lucraft"); -// System.out.println(Objects.requireNonNull(Thread.currentThread().getContextClassLoader().getResource("net/lucraft/converter/icons/icon.png")).getPath()); -// stage.getIcons().add(new Image(Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream("net/lucraft/converter/icons/icon.png")))); + stage.getIcons().add(new Image(Objects.requireNonNull(getClass().getResourceAsStream("/net/lucraft/converter/icons/icon.png")))); stage.setScene(scene); stage.setOnCloseRequest(event -> {