fileName = "aaa.gif" ;
        image = java.awt.Toolkit.getDefaultToolkit().getImage(fileName) ;
        
        graphics = this.jPanel1.getGraphics() ;
                     
        graphics.drawImage(image,0,0,this.jPanel1);如果是个静态的GIF就可以,感觉动态的一动就给REPAINT了

解决方案 »

  1.   

    你在你的GIF的基础上的那个控件的paint中把它画出来就行了
      

  2.   

    你用ACDSee看的效果呢?
    重写
    public void paintComponent(Graphics g) {
    ImageIcon thumbnail ;
    if (thumbnail != null) {
                int x = getWidth()/2 - thumbnail.getIconWidth()/2;
                int y = getHeight()/2 - thumbnail.getIconHeight()/2;            if (y < 0) {
                    y = 0;
                }            if (x < 5) {
                    x = 5;
                }
                thumbnail.paintIcon(this, g, x, y);
            }
    }
    然后repaint();
      

  3.   

    class RPanel extends JPanel{
       ImageIcon icon=new ImageIcon("e:/beijing.gif");
        private int picturew = icon.getIconWidth();
        private int pictureh = icon.getIconHeight();    public RPanel(){
       }
        public void paintComponent(Graphics g) {
             super.paintComponents(g);
              Dimension size = getSize();          for(int row=0; row < size.height; row += pictureh)
                      for(int col=0; col < size.width; col += picturew)
                              icon.paintIcon(this,g,col,row);
              }  }
      

  4.   

    我知道你的问题在哪里了,我也遇到过。你的分数我拿定了。email:[email protected]
      

  5.   

    同意steelabeer(民工) 
    用一个ImageIcon控件显示就没问题了