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

JavaÖÐAWT¡¢SwingÓëSWTÈý´óGUI¼¼ÊõµÄÔ­ÀíÓëЧÂʲîÒì

MineHeÔ­´´
¿´ÁËһ϶ÔJava GUIÌÖÂÛµÄÌû×Ó£¬ËùÒÔдÁËһƪÎÄÕÂÀ´²ûÊöһϸ÷ÖÖGUI¼¼ÊõµÄÓÅÁÓ¡£
JavaÊÀ½çÖУ¬Ä¿Ç°×îÖªÃûµÄÈý´óGUI¿â·Ö±ðÊÇ£º
1¡¢AWT£¨Abstract Window Toolkit£©³éÏó´°¿Ú¹¤¾ß°ü¿â£¬°üº¬ÓÚËùÓеÄJava SDKÖÐ
2¡¢Swing¸ß¼¶Í¼Ðο⣬°üº¬ÓÚJava2 SDKÖÐ
3¡¢À´×ÔIBM Eclipse¿ªÔ´ÏîÄ¿µÄSWT£¨Standard Widget Toolkit£©±ê×¼´°¿Ú²¿¼þ¿â£¬²»°üº¬ÓÚJDKÖУ¬ÐèÒª´ÓEclipseµ¥¶ÀÏÂÔØ
Ò»¡¢AWTµÄÔ­Àí£ºÐ¡ÇÉÈ´¼òªµÄGUIϵͳ
AWT³öÏÖÓÚJava 1.xÖУ¬ÊÇJava³õÆÚËùÄÚÖõÄÒ»ÖÖÃæÏò´°¿ÚÓ¦ÓõĿ⡣AWTʹÓõļ¼ÊõÊǶԵÈÉè¼Æģʽ£¨¼´Peer£©£¬Æä½á¹¹¹Øϵ²Î¼ûÏÂͼ¡£
´ÓÕâ·ùÀà¹ØϵͼºÜÈÝÒ׿´³öAWTµÄ¼¼ÊõʵÏÖºÍPeerÉè¼Æģʽ¡£Í¼ÖУ¬»ÆÉ«µÄÀàÊÇjava.awt°üÖеÄÀ࣬dz»ÒÉ«²¿·ÖÊÇJavaÐéÄâ»ú²¿·Ö£¬¶øÉî»ÒÉ«ÔòÊÇWindowsƽ̨¡£
awtµÄÖصãÊǶԵÈPeerÉè¼Æģʽ¡£ËùνPeer¶ÔµÈÉè¼Æģʽ¾ÍÊǽ«awt¿Ø¼þÖ±½Ó¶ÔÓ¦µ½ÔËÐÐƽ̨ÉϵÄÒ»¸öÀàËÆ»òÕßµÈͬ¿Ø¼þÉÏ¡£±ÈÈçͼÖеÄButtonÀà¾ÍÊǶÔÓ¦ÁËÉî»ÒÉ«µÄWindowsµÄ±ê×¼Button¹¦ÄÜ¡£
¶ÔµÈģʽÓÃÓÚÔÚÁ½¸ö¿Ø¼þ¼äÖ®¼ä½¨Á¢Ò»¸öÏ໥×÷ÓõÄÁªÏµ£¬¶ø³äµ±Å¦´øµÄÔòÊÇJavaÐéÄâ»úºÍÐéÄâ»ú£­GDIµÄ½Ó¿Ú£¨ÒÔWindowsΪÀý×Ó£©¡£ËùÒÔ£¬ÎÒÃÇ¿ÉÒÔ¿´³ö£¬awtÊ×ÏÈÐèÒª¾­¹ýͨÓõÄJava¼¼ÊõÀ´¿ØÖÆͼÐΡ¢Ê¼þµÈ£¬È»ºóJavaÐéÄâ»úÔÙ½«ÇëÇó´«Ë͵½¾ßÌåµÄƽ̨ͼÐκͿؼþ½Ó¿ÚÈ¥½»»¥¡£
¶ÔµÈģʽµÄЧÂʲ¢²»ºÜ¸ß£¬ÒòΪAWTͨ¹ýÁËÐéÄâ»úºÍÐéÄâ»ú£­GDIÕâÁ½¸ö²ã´ÎÀ´Íê³ÉÒ»¸ö²Ù×÷£¬¾­¹ýµÄ²ã´ÎϵͳԽ¶à£¬ËٶȺÍЧÂʾÍÔ½Âý¡£¶øÇÒPeer¶ÔµÈģʽÓÐÒ»¸öÖÂÃüµÄÈõµã£ºÒÆÖ²ÐԷdz£²î£¡
Õâ¾ÍÊÇSunΪʲôҪÓÃSwingÀ´ÓÕ»óÎÒÃÇÀ뿪AWTµÄÖ÷ÒªÔ­Òò¡£ÒòΪ¼ÈÈ»ÊǶԵÈģʽ£¬ÄÇôAWT¾Í±ØÐëʹÓÃËùÓÐͼÐβÙ×÷ϵͳµÄͼÐνӿڹ¦ÄܵĽ»¼¯£¬ÒòΪ AWTµÄ½Ó¿ÚÖ»ÓÐÒ»Ì×£¬ËùÒÔ£¬ÎªÁ˱£Ö¤ÒÆÖ²ÐÔ£¬¾ÍÖ»ÄÜʹÓÃËùÓÐϵͳ¶¼Äܹ»Ö§³ÖµÄ×îÉÙÌØÐÔ¡£Òò¶øÎÒÃǾ­³£¿ÉÒÔÌý¼ûÓÐÈ˱§Ô¹AWTµÄ¹¦ÄÜÌ«ÉÙ£¬Í¼ÐÎÌ«ÄÑ¿´µÈµÈ£¬ÕâÊÇΪÁ˱£Ö¤ÒÆÖ²ÐÔ¶ø×÷³öµÄÎþÉü¡£
¶þ¡¢ÃÍáï¾ÞÊ޵ĵ®Éú£­Swing
´ÓJava2 ¼´Java 1.2°æ±¾¿ªÊ¼£¬Sun¿ªÊ¼ÔÚJDKÖÐÌṩһÌ×еÄͼÐνçÃæ½Ó¿Úϵͳ£­Swing¡£ËùÓÐJava°®ºÃÕ߶¼Í¶ÈëÁ˶ÔSwingµÄÑо¿ºÍÃÔÁµ¡£Ëæ×ÅÒ»´óÅúʹÓÃSwing×÷Ϊ½çÃæ¼¼ÊõµÄIDEºÍ³ÌÐò³öÏÖ£¬ºÜ¿ì´ó¼Ò¶¼Òâʶµ½SwingµÄÎÊÌâËùÔÚ¡£
һЩÈËÈÏΪSwingÊÇÇáÁ¿¼¶µÄGUIϵͳ£¬ÎÞÂÛ¹Ù·½ÈçºÎ˵£¬Ã»ÓÐÒ»¸öJava³ÌÐòÔ±»áÈÏΪSwingÊÇÇáÁ¿¼¶µÄ£¬Ïà·´£¬SwingÊÇÒ»¸ö·Ç³£¾Þ´óµÄGUI¿â£¬ÕâÒ»µãÒѾ­ÊÇJava½çµÄ¹²Ê¶¡£
SwingµÄһЩµ×²ãÀàÊǽèÓÃÁËAWTµÄComponent¡¢Container¡¢WindowµÈ


Ïà¹ØÎĵµ£º

JAVAµÄ²ÎÊý´«µÝ»úÖÆ

²ÎÊý´«µÝ»úÖÆÖ÷ÒªÓÐÁ½ÖÖ£ºÖµµ÷ÓÃ(call-by-value)£¬ÒýÓõ÷ÓÃ(call-by-reference)¡£
Öµµ÷ÓÃ(call-by-value)£º»á¶ÔʵÔÚ²ÎÊýÇóÖµ£¨Èç¹ûÊDZí´ïʽ£©»ò¿½±´£¨Èç¹ûÊDZäÁ¿£©¡£ÕâЩֵ±»·ÅÔÚÊôÓÚ±»µ÷Óùý³ÌµÄÏìÓ¦ÐÎʽ²ÎÊýµÄÄÚ´æλÖÃÉÏ¡£
ÒýÓõ÷ÓÃ(call-by-reference)£ºÊµÔÚ²ÎÊýµÄµØÖ·×÷ΪÏàÓ¦µÄÐÎʽ²ÎÊýµÄÖµ±»´«µÝ¸ø±»µ÷ÓÃÕß¡£ÔÚ±»µ÷ ......

java ÐÞÊηûºÍ·ÃÎÊȨÏÞ½éÉÜ

java ÐÞÊηûºÍ·ÃÎÊȨÏÞ½éÉÜ
ÐÞÊηû½éÉÜ£º
public
ʹÓöÔÏó:Àà¡¢½Ó¿Ú¡¢³ÉÔ±±äÁ¿¡¢·½·¨
½éÉÜ:ÎÞÂÛËüËù´¦ÔÚ°ü¶¨ÒåÔÚÄĸÃÀà(½Ó¿Ú¡¢³ÉÔ±)¶¼ÊÇ¿É·ÃÎÊ
protected
ʹÓöÔÏó:³ÉÔ±±äÁ¿¡¢·½·¨
½éÉÜ:³ÉÔ±±äÁ¿Ö»ÄÜÔÚ¶¨ÒåËü°üÖб»·ÃÎÊ£¬Èç¹ûÔÚÆäËû°üÖб»·ÃÎÊ£¬ÔòʵÏÖÕâ¸ö˼··½·¨Àà±ØÐëÊǸóÉÔ±ËùÊôÀà×ÓÀà
private
ʹÓöÔÏó:³É ......

11.Java»ù´¡ÖªÊ¶¡¾Ï¡¿

 (×îÖÕ»¹ÊǾö¶¨ÖØÐÂдһ·ÝJava»ù´¡Ïà¹ØµÄÄÚÈÝ£¬Ô­À´ÒòΪÔÚдÕâÒ»¸öÕ½ڵÄʱºòûÓп¼Âǵ½»á¼á³ÖÍùºó±ßд£¬Õâ´ÎÓ¦¸ÃÊǸüиÃÄÚÈÝ¡£¶øÇÒºÜÌÖÑáд»ù´¡µÄ¶«Î÷£¬ÄÚÈݱȽÏËöË飬¶øÇÒÕûÀíÆðÀ´×Ü»áºÜ¶à£¬ÓпÉÄÜ»á´òÉ¢³ÉÁ½¸öÕ½ڣ¬µ«ÊÇÎÒ²»±£Ö¤£¬ÓпÉÄÜÒ»¸öÕ½ھÍдÍêÁË£¬ËùÒÔÓÐʱºòÏ£Íû»ù´¡µÄºÜ¶àÄÚÈÝ»¹ÊǶÁÕß×Ô¼ºÈ¥¿´¿´£¬ÎÒ»ù± ......

java Adapterģʽ


2009-08-19
תÔØ £º http://yahaitt.javaeye.com/blog/453032
java Adapterģʽ
¹Ø¼ü×Ö: android adapter
ͨ³££¬¿Í»§Àࣨclients of class£©Í¨¹ýÀàµÄ½Ó¿Ú·ÃÎÊËüÌṩµÄ·þÎñ¡£ÓÐʱ£¬ÏÖÓеÄÀࣨexisting class£©¿ÉÒÔÌṩ¿Í»§ÀàµÄ¹¦ÄÜÐèÒª£¬µ«ÊÇËüËùÌṩµÄ½Ó¿Ú²»Ò»¶¨ÊÇ¿Í»§ÀàËùÆÚÍûµÄ¡£ÕâÊÇÓÉÓÚÏÖÓеĽӿÚÌ«Ïêϸ»òÕßȱ·¦ ......

JavaScriptºÍJavaµÄÇø±ð

¡¡¡¡ËäÈ»JavaScriptÓëJavaÓнôÃܵÄÁªÏµ£¬µ«È´ÊÇÁ½¸ö¹«Ë¾¿ª·¢µÄ²»Í¬µÄÁ½¸ö²úÆ·¡£JavaÊÇSUN¹«Ë¾ÍƳöµÄÐÂÒ»´úÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼ÆÓïÑÔ£¬ÌرðÊʺÏÓÚInternetÓ¦ÓóÌÐò¿ª·¢£»¶øJavaScriptÊÇNetscape¹«Ë¾µÄ²úÆ·£¬ÆäÄ¿µÄÊÇΪÁËÀ©Õ¹Netscape Navigator¹¦ÄÜ,¶ø¿ª·¢µÄÒ»ÖÖ¿ÉÒÔǶÈëWebÒ³ÃæÖеĻùÓÚ¶ÔÏóºÍʼþÇý¶¯µÄ½âÊÍÐÔÓïÑÔ, ËüµÄÇ°ÉíÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ