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

Java ʵÓþ­Ñé×ܽá Swing ƪ


Java ʵÓþ­Ñé×ܽá --Swing ƪ
Ç°ÑÔ
±¾ÎÄÇ°ÑÔ²¿·ÖΪÎÒµÄһЩ¸ÐÏ룬Èç¹ûÄãÖ»¶Ô±¾ÎĽéÉÜµÄ Java ʵÓü¼ÇɸÐÐËȤ£¬¿ÉÒÔÌø¹ýÇ°ÑÔÖ±½Ó¿´ÕýÎĵÄÄÚÈÝ¡£
±¾ÎĵÄд×÷¶¯»úÀ´Ô´ÓÚ×î½ü½Ó¸øÈ˼ҰïæдµÄÒ»¸öС³ÌÐò£¬Ö÷ÒªÓÃÓÚ¹ÜÀí·ÖÆÚ¸¶¿îµÄ»õ¿îµÄһϵÁйÜÀí£¬°üÀ¨¹ýÆÚ¿îµÄ¼Í¼£¬¹ýÆÚ¿îÀûÏ¢µÄ¼ÆË㣬ΪÌáÇ°¸¶¿îµÄÓû§ÌṩһЩ·µ¿î½±ÀøµÈµÈ£¬ÕâЩÓë±¾ÎÄÎÞ¹Ø×Ô²»±Øϸ˵¡£ÎªÁ˾¡¿ìÍê³ÉÈÎÎñ£¬ÎÒ×ÔȻѡÔñÁËÎÒÓõÃ×î¶àµÄ Java À´ÊµÏÖ¡£¾­¹ý 2 ÖܵÄÀͶ¯£¬Ë³ÀûÍê³ÉÁËÈÎÎñ£¬Ã÷Ìì¾Í¿ÉÒÔÈ¥½»²î£¬µ«ÊÇÕâÒ»¿ÌÎÒÈ´ºöÈ»ÓÐЩÆäËûµÄÏë·¨¡£³ÏÈ»ÕâÑùµÄ»îÔ­±¾ÊôÓÚÌåÁ¦ÀͶ¯£¬ÀàËƵĻîÎÒÒ²×ö¹ý²»Ö¹Ò»´Î£¬¶ÔÓںܶà¸ßÈËÀ´Ëµ£¬Ã»Ê²Ã´ÖµµÃÒ»ÌáµÄ£¬ÒÔÇ°ÎÒÒ²Ö»Êǽ»²îÊÕÇ®ÁËÊ£¬µ«ÕâÒ»´ÎÎÒÈ´¶àÁËһЩÏë·¨£¬Ê¹ÎÒ²»Í²»¿ì¡£
ÔÚ³ÌÐòµÄʵÏÖ¹ý³ÌÖУ¬ÎÒÓöµ½Á˸öСÎÊÌ⣬¾ÍÊǼÆËãÁ½¸öÈÕÆڵIJÓÉÓÚÒÔÇ°³£ÓÃµÄ Date ÀàµÄ´ó¶àÊý·½·¨¶¼±»±ê¼ÇΪ“ deprecate ”£¬ËùÒÔÎÒ¾ö¶¨Óà Calender ×÷Ϊ¼ÆËãÈÕÆÚµÄÖ÷Á¦¡£µ«ÊÇ´ó¶àÊý²Î¿¼ÊéÉ϶¼ÊÇÓɹØÓÚ Calender µÄÈÕÆÚ¸ñʽ£¬ Locale µÄÉèÖ㬳£Á¿µÄº¬ÒåµÈ·½ÃæµÄ½²½â£¬È´ÔõôҲÕÒ²»µ½ÕâÑùÒ»¸ö¼òµ¥È´³£ÓõÄÈÎÎñÔõôʵÏÖ£¨×¢£ºÕâÒ²²»ÄܹÖÎÒÀÁ¶è£¬×÷ΪÕâÑùÒ»¸ö³ÌÐòÀ´Ëµ£¬Èç¹ûÓÐÕýÈ·ÇÒ³ÉÊìµÄ·½·¨£¬Ë­»¹»áÈ¥»¨´óÁ¿Ê±¼ä×ÐϸÑо¿ API ÄØ£¿·´ÕýÕâ¸öÀà¿ÉÄÜÔÚ½ñºóµÄ¼¸¸öÔÂÉõÖÁ¼¸Ä궼Óò»ÉÏ£¬ÏÖÔÚ¼Çסµ½Ê±ºòÒ²¶¼ÍüÁË L £©¡£ÓÚÊÇÔÚÎÒ google Á˺ÃÒ»ÕóÖ®ºó£¬ÖÕÓÚÔÚijÈ赀 Blog ÉÏÕÒµ½ÁËÓà Calender ¼ÆËãÈÕÆÚ²îµÄ·½·¨¡£ÔÚÄÇÒ»¿ÌÎÒÕæÓоúµ·ê¸ÊÓêÖ®¸Ð¡£²©Ö÷¿ÉÄÜÊÇһʱÐËÆð£¬Ò²ÓпÉÄÜÊÇÐËȤËùÔÚ£¬µ«ÎÞÂÛÊÇʲôԭÒò£¬ËûµÄ¹¤×÷¶¼ÎªÎÒÌṩÁ˺ܴóµÄ·½±ã¡£ÓÐÁËËûµÄ´úÂëʾÀý£¬ÎÒ¿ÉÒÔ²»ÔÙÈ¥Öð¸ö²éÕÒ Java-Doc ÀïÃæµÄ API £¬È»ºóÌô³ö¼¸¸öÀ´³¢ÊÔ½â¾öÎÊÌ⣬×îºóÔÙд¸ö demo ÑéÖ¤ÕâÒ»·±¸´µÄ¹ý³ÌÁË¡£
ÔÙ»ØÏëÒ»ÏÂÎÒÍê³ÉÕâ¸ö³ÌÐòµÄ¹ý³Ì£¬ÓÉÓÚÒÔÇ°×ö¹ýһЩÀàËƵijÌÐò£¬ÎÒ¿ÉÒÔ½«ÀïÃæµÄºÜ¶à²¿·ÖÒÔÖ±½ÓÓ¦Óõ½Õâ¸ö³ÌÐòÖУ¬½ÚÊ¡ÁË´óÁ¿µÄʱ¼ä£¬ÈÃÎÒ¿ÉÒÔ¸üרעÓÚºËÐÄÒµÎñµÄʵÏÖµ±ÖС£È»¶ø»òÐíÊdzöÓÚÀÁ¶è£¬»òÐíÊÇûÓÐʱ¼ä£¬ÓÖ»òÐíÔ­À´µÄÊÇ Blog ûÓжàÉÙÈ˹Ø×¢£¬ÎÒ¶¼Ã»Óн«ÕâЩ´ó¶àÊýÈ˶¼¿ÉÄÜ»áÓõÃÉϵĶ«Î÷·Åµ½ÍøÉÏ¡£
ÔÙÁªÏëһϹúÍ⿪Դ¹¤×÷Õ߶ÔÖйú³ÌÐòÔ±µÄÆÀ¼Û — “Ö»»ñÈ¡£¬²»¹±Ï×”£¬¾Í¾õµÃÈ˼Ò˵µÃÊ®·Ö¶Ô¡£×Ô¼º¾ÍÓÃ×ÅÃâ·ÑµÄ J2SDK ÓïÑÔ£¬Ãâ·ÑµÄ Eclipse £¬Ãâ·ÑµÄ JFreeChart £¬Ãâ·ÑµÄ JasperReport…… £¬È´´ÓÀ´Ã»Äܹ»¸øÈ˼ҹ±Ï×ÄÄÅÂÒ»ÐдúÂë¡£ÕâÑùÒ²¾Í


Ïà¹ØÎĵµ£º

Java¼¯ºÏ¿ò¼ÜʹÓÃ×ܽá

Ç°ÑÔ£º
±¾ÎÄÊǶÔJava¼¯ºÏ¿ò¼Ü×öÁËÒ»¸ö¸ÅÀ¨ÐԵĽâ˵£¬Ä¿µÄÊǶÔJava¼¯ºÏ¿ò¼ÜÌåϵÓиö×ÜÌåÈÏʶ£¬Èç¹ûÄãÏëѧϰ¾ßÌåµÄ½Ó¿ÚºÍÀàµÄʹÓ÷½·¨£¬Çë²Î¿´Java APIÎĵµ¡£
Ò»¡¢¸ÅÊö
Êý¾Ý½á¹¹¶Ô³ÌÐòÉè¼ÆÓÐ×ÅÉîÔ¶µÄÓ°Ï죬ÔÚÃæÏò¹ý³ÌµÄCÓïÑÔÖУ¬Êý¾Ý¿â½á¹¹ÓÃstructÀ´ÃèÊö£¬¶øÔÚÃæÏò¶ÔÏóµÄ±à³ÌÖУ¬Êý¾Ý½á¹¹ÊÇÓÃÀàÀ´ÃèÊöµÄ£¬²¢ÇÒ°üº¬ÓжԸÃÊ ......

¡¶JavaÃæÏò¶ÔÏó±à³Ì¡·—Êý×éµÄÏà¹ØÊÂÏî


1.ÉùÃ÷Êý×éÒýÓñäÁ¿Ê±²»ÄÜÖ¸¶¨Êý×éµÄ³¤¶È¡£È磺int x[1];Õâ¾ä»°·Ç·¨¡£
2.Êý×é¶ÔÏóµÄ´´½¨£¬ÀýÈ磺
int [] scores = new int[100];
Ê×ÏÈÔÚ¶ÑÖзÖÅäÄÚ´æ¿Õ¼ä£¬ÉÏÊöµÄ¾ÍÊÇ400¸ö×Ö½Ú£¬È»ºó¾Í¸øÆ丳ĬÈÏÖµ£¬¸÷¸öÊý¾ÝÀàÐ͵ÄĬÈÏÖµ²»Í¬£¬intΪ0.
3.·µ»ØÊý×é¶ÔÏóµÄÒýÓãº
int [] x =new int [10]; <=> int size = 10; i ......

JAVAÈçºÎµ÷ÓÃDOSÃüÁî

ÓÃJava±àдӦÓÃʱ£¬ÓÐʱÐèÒªÔÚ³ÌÐòÖе÷ÓÃÁíÒ»¸öÏֳɵĿÉÖ´ÐгÌÐò»òϵͳÃüÁÕâʱ¿ÉÒÔͨ¹ý×éºÏʹÓÃJavaÌṩµÄRuntimeÀàºÍProcessÀàµÄ·½·¨ÊµÏÖ¡£ÏÂÃæÊÇÒ»ÖֱȽϵäÐ͵ijÌÐòģʽ£º
...
Process process = Runtime.getRuntime().exec(".\\p.exe");
process.waitfor( );
...
ÔÚÉÏÃæµÄ³ÌÐòÖУ¬µÚÒ»Ðеē.\\p.exe& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ