From 05fa7f20e52dd2835958bf6835559d986992e7be Mon Sep 17 00:00:00 2001 From: magenoxx Date: Fri, 22 Oct 2010 14:04:20 +0000 Subject: [PATCH] Minor change for getting texture. --- Mage.Client/src/main/java/mage/client/game/GamePanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/mage/client/game/GamePanel.java b/Mage.Client/src/main/java/mage/client/game/GamePanel.java index 0876b821f8..42d674a2af 100644 --- a/Mage.Client/src/main/java/mage/client/game/GamePanel.java +++ b/Mage.Client/src/main/java/mage/client/game/GamePanel.java @@ -46,6 +46,7 @@ import java.util.Map; import java.util.UUID; import java.util.logging.Logger; +import javax.imageio.ImageIO; import javax.swing.JComponent; import javax.swing.JLayeredPane; import javax.swing.JOptionPane; @@ -89,7 +90,7 @@ public class GamePanel extends javax.swing.JPanel { //FIXME: remove from here try { - BufferedImage background = ImageHelper.loadImage("/dk_gray.jpg"); + BufferedImage background = ImageIO.read(this.getClass().getResourceAsStream("/dk_gray.jpg")); ImagePanel bgPanel = new ImagePanel(background, ImagePanel.TILED); // Override layout (I can't edit generated code)