Back to project page LotR_Risk.
The source code is released under:
GNU General Public License
If you think the Android project LotR_Risk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package swingGUI; // w w w. ja v a 2 s . c o m import java.awt.Graphics; import javax.swing.ImageIcon; import javax.swing.JPanel; class Map extends JPanel { private final ImageIcon mapImage; public Map(ImageIcon mapImage) { this.mapImage = mapImage; } @Override public void paintComponent(Graphics g) { g.drawImage(mapImage.getImage(), 0, 0, null); } }