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