public void setImage(String filename) throws IOException { if (filename != null) { if ("".compareTo(filename) != 0) { background.setImage(filename); } } repaint(); }
public void setImage(BufferedImage image) { background.setImage(image); repaint(); }