Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 84f3bb33

Přidáno uživatelem Jan Havlíček před asi 4 roky(ů)

re #7891 Unable to load URI (file: added)
gitignore for classpath not working, but this version should not harm anything

Zobrazit rozdíly:

project/Deserializer/src/Deserializer.java
75 75
	@Override
76 76
	public void start(Stage stage) throws Exception {
77 77
		this.stage = stage;
78
		stage.getIcons().add(new Image("img/logo.png"));
78
		stage.getIcons().add(new Image("file:img/logo.png"));
79 79
		stage.setTitle("Java Object Universal Deserializer");
80 80
		stage.setScene(createScene());
81 81
		stage.setMinWidth(400);
......
328 328
		this.fullScreen = (Label) fullScreen.getGraphic();
329 329
		changeFullScreenMenuItem();
330 330
        
331
        MenuItem close = createMenuItem("Ukončit", "img/close.png", new KeyCodeCombination(KeyCode.E, KeyCombination.CONTROL_DOWN));
331
        MenuItem close = createMenuItem("Ukončit", "file:img/close.png", new KeyCodeCombination(KeyCode.E, KeyCombination.CONTROL_DOWN));
332 332
        close.setOnAction(event -> {
333 333
			Platform.exit();
334 334
		});
......
342 342
	
343 343
	private void changeFullScreenMenuItem() {
344 344
		fullScreen.setText(stage.isFullScreen() ? "Normální zobrazení" : "Plné zobrazení");
345
		fullScreen.setGraphic(new ImageView(stage.isFullScreen() ? "img/normal.png" : "img/full.png"));
345
		fullScreen.setGraphic(new ImageView(stage.isFullScreen() ? "file:img/normal.png" : "file:img/full.png"));
346 346
	}
347 347
	
348 348
	private MenuItem createMenuItem(String name, String icon, KeyCodeCombination keyCodeComb) {

Také k dispozici: Unified diff