示例#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();
 }