hotfix
This commit is contained in:
parent
59c444d162
commit
b769ad0ca6
@ -2,6 +2,7 @@ package ruscz.game.gameOfProd.Image;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.*;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class ImageDialog {
|
||||
@ -19,7 +20,7 @@ public class ImageDialog {
|
||||
|
||||
private void parseImage(){
|
||||
try {
|
||||
image = ImageIO.read(getClass().getResource(name));
|
||||
image = ImageIO.read(new File("src/main/resources/" + name));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user