paths must be absolute

This commit is contained in:
Anton Keks 2016-12-10 00:12:25 +02:00
parent 4b1152d5af
commit 4583a6cb2e
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public abstract class AbstractModalDialog {
icon = parent.getImage();
}
if (icon == null) {
icon = new Image(shell.getDisplay(), getClass().getResourceAsStream("images/icon.png"));
icon = new Image(shell.getDisplay(), getClass().getResourceAsStream("/images/icon.png"));
}
shell.setImage(icon);

View File

@ -101,7 +101,7 @@ public class MainWindow {
shell.setLayout(new FormLayout());
// load and set icon
Image image = new Image(shell.getDisplay(), getClass().getResourceAsStream("images/icon.png"));
Image image = new Image(shell.getDisplay(), getClass().getResourceAsStream("/images/icon.png"));
shell.setImage(image);
shell.addListener(SWT.Close, new Listener() {