JavaС¼¼ÇÉ
1¡¢½«String/StringBuffer±äÁ¿µÄÖµÖÃΪnull£¬ÔòÆäËùÕ¼ÄÚ´æ»áºÜ¿ì±»»ØÊÕ¡£
2¡¢ÔËÐйý³ÌÖнöÒÀÀµÓÚÊäÈë²ÎÊýµÄ·½·¨£¬ÈçÊýѧ·½·¨£»¾²Ì¬³ÉÔ±±äÁ¿³£Îª¶¨Òå³£Êý£¬ÓÃÏÞ¶¨´Êpublic static final£»¾²Ì¬³ÉÔ±±äÁ¿¿É½ÚÊ¡ÄÚ´æ¡£
3¡¢½Ó¿Ú£ºÈôÓÐÐèÍê³É³éÏóµÄ¶¯×÷»ò¾ßÓиÅÄîÐÔµÄÊôÐÔ£¬ÔòÔÚ½Ó¿ÚÖж¨Òå¸Ã¶¯×÷»ò¸ÅÄÔÚʵÏָýӿڵÄÀàÖоßÌ廯¡£
4¡¢Ò»¸öʵÏÖActionListenerµÄÀà±ØÐëÓÐÒ»¸öactionPerformed·½·¨¡£ÎªÁ˱£³ÖÕâ¸ö·½·¨µÄ¼òµ¥ÐÔ£¬ÔÚif-else-ifÓï¾äµÄÏàÓ¦·ÖÖ§ÄÚ½«Ê¼þ½»¸øһЩÏàÓ¦´¦Àí·½·¨À´Íê³É¡£Èôij´¦Àí·½·¨¶ÔÆäËûÀàÓÐÓ㬲¢ÇÒ²»»á²úÉú¸±×÷Óã¬ÔòӦʹÆä³ÉΪpublic·½·¨¡£
5¡¢ÈκζÔÓû§¿É¼ûµÄÎı¾£¬Èç±êÇ©¡¢³ö´íÐÅÏ¢ÌáʾµÈ£¬¶¼Ó¦¸Ã¶¨ÒåΪ³£Á¿£¬ÕâÖÖÎı¾Ò×ÓÚÐ޸ġ£½«±³¾°ÑÕÉ«¡¢×ÖÌåºÍÆäËû¿ÉÊÓ×é¼þ¶¨ÒåΪ³£Á¿£¬ÕâÑù¿ÉѸËٸıä³ÌÐòµÄÍâ¹Û¡£ÓÐʱ¿Éµ¥¶ÀʹÓÃContantsÀ࣬°üÀ¨³ÌÐòËùÓÐÒªÓõ½µÄ³£Êý¡¢É«²Ê¡¢×ÖÌåµÈ£¬²¢½«ÊôÐÔ¶¨ÒåΪstatic final¡£
6¡¢ÊǶԻ°¿òÏÔʾÔÚÆÁÄ»µÄÖÐÑ룬ÔÚpack()ºÍsetVisible()Ö®¼ä¼ÓÈëÏÂÁдúÂ룺
int x=parent.getLocation().x+(parent.getSize().width-getSize().width)/2;
int y=parent.getLocation().y+(parent.getSize().height-getSize().height)/2;
x=Math.min(getToolkit().getScreenSize().width-getSize().width,x);
y=Math.min(getToolkit().getScreenSize().height-getSize().height,y);
setLocation(Math.max(0,x),Max.max(0,y));
7¡¢Îª´´½¨Ò»¸ögraphics¶ÔÏó£¬ÏÈ´´½¨Ò»¸öÀà¼Ì³ÐCanvasÀ࣬²¢¸²¸Çpaint·½·¨£¬ÔÙ½«Õâ¸öÀà×÷Ϊ³ÉÔ±¼ÓÈëµ½ÀàËÆÓÚFrame»òApplet
Ïà¹ØÎĵµ£º
1¡¢ÖÐÎÄÎÊÌâµÄÀ´Ô´
ÓÉÓÚJava
Óï
ÑÔÄÚ²¿²ÉÓÃUNICODE±àÂ룬ËùÒÔÔÚJAVA
³ÌÐòÔËÐÐʱ£¬¾Í´æÔÚ×ÅÒ»¸ö´ÓUNICODE±àÂëºÍ¶ÔÓ¦µÄ²Ù×÷ϵͳ¼°ä¯ÀÀÆ÷Ö§³ÖµÄ±àÂë¸ñʽ
ת
»»ÊäÈë¡¢Êä³öµÄÎÊÌ⣬Õâ¸öת»»¹ý³ÌÓÐ×ÅһϵÁеIJ½Ö裬Èç¹ûÆäÖÐÈκÎÒ»²½³ö´í£¬ÔòÏÔʾ³öÀ´µÄºº×־ͻá³öÊÇÂÒÂ룬Õâ¾ÍÊÇÎÒÃdz£¼ûµÄJAVA
ÖÐ
ÎÄÎÊÌâ¡£¼¸ºõËùÓÐµÄ ......
service = new
Service();
thread=new
Thread(service);
try
{
  ......
×î½üдÔ˼۵Äϵͳ,дµÃºÃÀÛ°¡,²»¹ý²î²»¶à½Ó½üÍê³ÉÁË.µ«±àÂëµÄÎÊÌâÒ»Ö±¶¼ÊÇËƶ®·Ç¶®µÄ.
Ö»ºÃÒ»µãµãÈ¥ËÑË÷javaºÍhtmlµÄ±àÂëÎÊÌâ.ºÃ·³,µ½×îºó,ÎÊÌâÊǽâ¾öÁË,µ«²»ÊÇ×îÍêÕûµÄ´¦Àí·½·¨.Ï£ÍûÒÔºó¿ÉÒÔ´¦ÀíºÃ.
ÔÚÒ»¸östruts2µÄ·µ»ØÌáʾµÄ×Ö·û´®µ½Ò³ÃæÖÐ.ÎÊÌâ¾ÍÊdzöÔÚÕâ×Ö·û´®ÖÐÓÐÍøÒ³µÄ»»Ð ......
ÎÒʹÓÃURLÀàÀ´·ÃÎÊFTP·þÎñÆ÷£¬µ±µØÖ·ÖÐûÓÐÖÐÎÄʱûÓÐÎÊÌ⣬µ«ÊÇ
µ±ftpÖеÄÎļþ¼ÐÓÐÖÐÎÄʱ£¬¾ÍÎÞ·¨·ÃÎÊÁË£¬ÎÒÊÔ¹ýencoderºÍdecoderÀ࣬¶¼²»ÐУ¬ÓÐʲô½â¾ö·½·¨Ã´£¿
URL now = new URL("ftp://202.204.208.124/Èí¼þ/");
......
windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
¡¡ 2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“ ......