I tested this code in order to create dialog with image.
final int xSize = 400; final int ySize = 280; final Color backgroundColor = Color.WHITE; final Strin
Image img = new Image("file:/logo.png");
or way with path:
Image img = new Image("file:c:/logo.png");
or
File f = new File("c:\\logo.png"); Image img = new Image(f.toURI().toString());
also can use:
new Image(file:src/logo.png) //root of project