| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 663 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺ΪʲôͼƬ²»ÄÜÏÔʾÄØ
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
wtyl0088
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º109
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-3-24
ÊÕ²Ø
 ÎÊÌâµãÊý£º0 »Ø¸´´ÎÊý£º3 
ΪʲôͼƬ²»ÄÜÏÔʾÄØ
/*<applet code="Image001.class"width=200 height=200>
</applet>
*/
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Image001 extends JApplet implements Runnable{
ImageIcon pic1;
double j=1;
int i=10;
public void init(){
pic1=new ImageIcon("D:/myjava/tupian/avril.gif");
resize(400,400);
}
public void run(){

System.out.println("ceshiceshi");
}
public void paint (Graphics g){
while(j>1) {
i++;
pic1.paintIcon(this,g,i,50);
if(j%5==0)
{try
{Thread.sleep(1000);}
catch(Exception e) {}}
}
if(j>10000) j=1;
}


}
ΪʲôͼƬ²»ÄܳöÀ´ÄØ
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: public¡¡import¡¡void¡¡java¡¡
2006-03-24 23:16
cll19820814
Rank: 2
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Íþ¡¡Íû£º3
Ìû¡¡×Ó£º328
ר¼Ò·Ö£º0
×¢¡¡²á£º2005-11-30
ÊÕ²Ø
µÃ·Ö:0 
°ÑͼƬ·ÅÔÚ.javaÎļþµÄËùÔÚĿ¼ÊÔÊÔ¿´

ãÂ㶮¶®£¬¿´Ç§±é¶ø²»»á£»ÉèÉí´¦µØ£¬ÊÔһϾͳɹ¦£¡
2006-03-25 09:55
ǧÀï±ù·â
Rank: 16Rank: 16Rank: 16Rank: 16
À´¡¡×Ô£º¹àˮ֮Íõ
µÈ¡¡¼¶£º°æÖ÷
Íþ¡¡Íû£º155
Ìû¡¡×Ó£º28477
ר¼Ò·Ö£º59
×¢¡¡²á£º2006-2-26
ÊÕ²Ø
µÃ·Ö:0 

ÕâÑùµ±È»ÊÇÏÔʾ²»Á˵ģ¬ÄãµÄj¾ÍÊǵÈÓÚ1£¬¿ÉÊÇÄãÈ´ÒªËü´óÓÚ1£¬Èç¹ûÄãÏëÏÔʾµÄ»°£¬¿ÉÒÔÕâÑù×ö£º
========================================
/*<applet code="Image001.class"width=200 height=200>
</applet>
*/
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Image001 extends JApplet implements Runnable{
Image pic1;

public void init(){
pic1=this.getImage(getCodeBase(),"image.gif");
resize(400,400);
}
public void run(){

System.out.println("ceshiceshi");
}
public void paint (Graphics g){


g.drawImage(pic1,0,0,this);

}


}
ÔÚÕâÀïÈç¹ûÄã°ÑͼƬ·ÅÔÚºÍImage001.classͬһ¸öĿ¼Ï£¬ÉÏÃæÀ¶É«µÄ×Ö¾ÍÊǶԵÄ
µ«ÊÇÈç¹ûÄã°ÑͼƬºÍHTMLÎļþ·ÅÔÚͬһ¸öĿ¼Ï£¬ÉÏÃæÀ¶É«µÄ×Ö¾ÍÒª¸Ä³ÉgetDocumentBase();
Ñø³ÉÁËÕâ¸öÏ°¹ßÒ²ºÜºÃ£¬ÒƵ½ÄÄÀﶼÄÜÔËÐУ¬·ñÔòÄãдһ¸ö¾ø¶ÔµØÖ·£¬±ðÈ˵çÄÔÉϸù±¾Ã»ÓÐÕâ¸öĿ¼£¬Ôõô¿ÉÄÜ¿´µÃµ½ÄãµÄͼƬӴ

[´ËÌù×ÓÒѾ­±»×÷ÕßÓÚ2006-3-25 10:25:10±à¼­¹ý]


¿Éϧ²»ÊÇÄã,ÅãÎÒµ½×îºó
2006-03-25 10:20
wtyl0088
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º109
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-3-24
ÊÕ²Ø
µÃ·Ö:0 

¶ÔÓÚsunÐÅͽ¸øÓèÇ¿ÁҵĸÐл


2006-03-25 13:15
¿ìËٻظ´£ºÎªÊ²Ã´Í¼Æ¬²»ÄÜÏÔʾÄØ
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



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

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