/Users/petercappello/NetBeansProjects/56-2014/56-2014-5-Gala/src/View.java |
import java.awt.Graphics; import java.awt.Image; import javax.swing.JPanel; /** * * @author Peter Cappello */ public class View extends JPanel { private final int SIZE = 600; private Image image; @Override public void paintComponent( Graphics graphics ) { super.paintComponent( graphics ); graphics.drawImage( image, 0, 0, SIZE, SIZE, this ); } void setImage( Image image ) { this.image = image; } }