mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
paths must be absolute
This commit is contained in:
parent
4b1152d5af
commit
4583a6cb2e
@ -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);
|
||||
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user