| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 639 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺ΪʲôͼƬ²»ÏÔʾ£¿
È¡ÏûÖ»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
ÉñÁú»ð¾æ
Rank: 1
À´¡¡×Ô£º¹ãÎ÷ÁøÖÝ
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º13
ר¼Ò·Ö£º5
×¢¡¡²á£º2014-11-11
½áÌûÂÊ£º100%
ÊÕ²Ø
ÒѽáÌù¡Ì  ÎÊÌâµãÊý£º20 »Ø¸´´ÎÊý£º0 
ΪʲôͼƬ²»ÏÔʾ£¿
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Image;


@SuppressWarnings("serial")
public class BackgroundImage extends Applet{
    Image picture;
    boolean ImageLoaded=false;
    @SuppressWarnings("deprecation")
    public void init(){
        picture=getImage(getCodeBase(),"F:\\ͼƬ\\21.jpg");
        Image offscreeImage=createImage(size().width, size().height);
        Graphics offscreenGC=offscreeImage.getGraphics();
        offscreenGC.drawImage(picture, 0, 0, this);
        ImageLoaded=true;
    }
    public void paint(Graphics g){
        if(ImageLoaded){
            showStatus("Done");
        }else
          showStatus("Loading image");
    }
    public boolean imageUpdate(Image img,int infoflages,int x,int y,int w,int h){
        if(infoflages==ALLBITS){
            ImageLoaded=true;
            repaint();
            return false;
        }else
            return true;
    }
}
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: public¡¡import¡¡false¡¡Í¼Æ¬¡¡
2014-11-27 19:29
¿ìËٻظ´£ºÎªÊ²Ã´Í¼Æ¬²»ÏÔʾ£¿
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.033377 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved