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