Can't draw a Buffered Image
问题 I'm using this code to try and draw an image : g.drawImage(Tile.background, (int)spritePositionX, (int)spritePositionY, null); Here is the my tile class for Tile.background : public class Tile { public static int size = 40; public static BufferedImage terrain, background, items, characters; public Tile(){ try{ Tile.background = ImageIO.read(new File("res/bg.png")); Tile.terrain = ImageIO.read(new File("res/terrain.png")); Tile.items = ImageIO.read(new File("res/items.png")); Tile.characters =