Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

²ÉÓÃJAVA×é¼þÏÔʾ±¾µØÍ¼Æ¬


³ÌÐòÉè¼ÆÖо­³£»áÅöµ½ÓÃ×é¼þÀ´ÏÔʾͼƬµÄÇé¿ö,    ¿ÉÒÔÏÔʾͼƬµÄ×é¼þÓкܶà,Èçawt°üÖеÄbutton,label,panelµÈ¶¼¿ÉÒÔÔÚÆäÉÏÃæ·ÅÖÃͼƬ.ͼƬÓÖ¿É·ÖΪÁ½Àà,Ò»ÀàÊÇ·ÅÖÃÓÚbuttonµÈ×é¼þÉϵÄImageIcon(ͼ±ê),ÁíÒ»ÀàÊÇ¿ÉÒÔ·ÅÖÃÔÚpanelµÈ×é¼þÉϵĽϴóµÄͼƬImage¡£
´Ó±¾µØ¼ÆËã»úÖжÁȡͼƬµÄ·½·¨Ò²Óкܶ࣬±ÈÈ磬ÀûÓÃImageIconÀ´¶ÁÈ¡±¾µØÍ¼Æ¬£¬»¹¿ÉÒ԰ѶÁÈ¡µ½µÄImageIconת»»ÎªImage¡£»¹ÓÐÒ»ÖÖ»ñÈ¡ImageµÄ·½·¨ÊÇÀûÓÃToolkitÀà¡£ÎÒ¸öÈ˽Ïϲ»¶µÚ¶þÖÖ·½·¨£¬Toolkit.getDefaultToolkit().createImage("ͼƬÃû")£»ÒòΪToolkitÀàÊÇÖ±½ÓÓë±¾µØ²Ù×÷ϵͳÏàÁªÏµµÄÒ»¸öÀ࣬»ñÈ¡µ½µÄͼƬ»á¸üÕæÊµ£¬¸üÖ±½Ó¡£
ÏëÒªÓÃJPanelÀ´ÏÔʾ»ñÈ¡µ½µÄͼƬ¾ÍÐèÒªÖØÐ´JPanelÀàµÄpaint(Graphics g)·½·¨£¬¿ÉÒÔÖØÐ´Ò»¸öÀàÀ´extends JpanelÀ࣬Ҳ¿ÉÒÔÔÚ¶¨ÒåJpanelÀàµÄʵÀýʱ²ÉÓÃÄäÃûÀàµÄд·¨À´ÖØÔØpaint()·½·¨¡£
ʾÀýÒ»£º
classImagePanel extends JPanel{
Image image=Toolkit.getDefaultToolkit().createImage("test.jpg")£»
public void paint(Graphics g) {
g.drawImage(image,0,0,image.getWidth(null),image.getHeight(null),null);
}
}
ʾÀý¶þ£º
Image image=Toolkit.getDefaultToolkit().createImage("test.jpg")£»
JPanel panel=new JPanel(){
public void paint(Graphics g){
g.drawImage(image,0,0,imagegetWidth(null),image.getHeight(null),null);
}
};


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

javaÃæÏò½Ó¿Ú±à³Ì

½Ó¿Ú±¾ÖÊÉϾÍÊÇÓÉÖÆ¶¨ÕßÀ´Ð­µ÷ʵÏÖÕߺ͵÷ÓÃÕßÖ®¼äµÄ¹ØÏµ¡£
ËùÒÔͨ³£ËµµÄ“ÃæÏò½Ó¿Ú±à³Ì”¿ÉÒÔÀí½âΪ£º
Ö»ÓÐʵÏÖÕߺ͵÷ÓÃÕß¶¼×ñÑ­“ÃæÏò½Ó¿Ú±à³Ì”Õâ¸ö×¼Ôò£¬Öƶ¨ÕßµÄЭµ÷Ä¿µÄ²ÅÄÜ´ïµ½¡£
Ò»¸öÀÏÉú³£Ì¸µÄÀý×Ó¾ÍÊÇJDBC¡£
ºÜ¶àÈ˷ѽ⣺¼ÈÈ»ÎÒÿÁ¬½ÓÒ»ÖÖÊý¾Ý¿â£¨Èçmysql£©¶¼ÒªÊÂÏȲ¿ÊðÇý¶¯³ÌÐò£¬ÄÇÎÒÖ±½ ......

Ḭ̈߳²È«µÄSingletonģʽµÄJavaʵÏÖ

public class Factory {
private static Factory factory;
private static Object classLock=Factory.class;
   private Factory(){}
   public static Factory getFactory(){
      synchronized(classLock){
          ......

java doc


ÒÔÏÂÎÄ×ֲο¼×Ôhttp://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html
 
javadoc¹¤¾ß¿ÉÒÔ´ÓÒÔÏÂ4Àà“Ô´Îļþ”²úÉúdoc£º
(1) javaÔ´Îļþ(.java),Éú³É¶ÔÀàºÍÀàµÄ³ÉÔ±µÄdoc
(2) package×¢ÊÍÎļþ(package-info.java»òÕßpackage.html),Éú³É¶Ô°üµÄ˵Ã÷
(3) overviewÎļþ(Ãû¿ÉÒÔËæ±ã£¬Í¨³£ÊÇo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ