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