This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JLayeredPane layers = new JLayeredPane(); | |
layers.setPreferredSize( new Dimension( GRID_SIZE, GRID_SIZE ) ); | |
layers.setLayout(new FlowLayout()); | |
BufferedImage backgroundImage = null; | |
try{ backgroundImage = ImageIO.read(new File("resources/Background.png"));} | |
catch(IOException ex){ | |
System.out.println(ex); | |
} |