mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
Minor change for getting texture.
This commit is contained in:
parent
f775f7c511
commit
05fa7f20e5
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
import javax.swing.JComponent;
|
import javax.swing.JComponent;
|
||||||
import javax.swing.JLayeredPane;
|
import javax.swing.JLayeredPane;
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
@ -89,7 +90,7 @@ public class GamePanel extends javax.swing.JPanel {
|
||||||
|
|
||||||
//FIXME: remove from here
|
//FIXME: remove from here
|
||||||
try {
|
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);
|
ImagePanel bgPanel = new ImagePanel(background, ImagePanel.TILED);
|
||||||
|
|
||||||
// Override layout (I can't edit generated code)
|
// Override layout (I can't edit generated code)
|
||||||
|
|
Loading…
Reference in a new issue