Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÐéÄâ»ú·½Ãæ

Ò»¡¢Àà×°ÔØÆ÷£ºÍ¨¹ý·Ö±ðʹÓò»Í¬µÄÀà×°ÔØÆ÷×°ÔØ¿É¿¿µÄ°üºÍ²»¿É¿¿µÄ°üÀ´ÊµÏÖ°² È«ÐÔ¡£
 
ÔÚ1.2°æ±¾µÄJavaÐéÄâ»ú¿ªÊ¼ÔËÐÐʱ£¬ÔÚÓ¦ÓóÌÐòÆô¶¯ÒÔÇ°£¬ËüÖÁÉÙ´´½¨Ò»¸öÓû§×Ô¶¨ÒåÀà×°ÔØÆ÷£¬Ò²¿ÉÄÜÊǶà¸ö¡£ËùÓÐÕâЩÀà×°ÔØÆ÷±»Á¬½ÓÔÚÒ»¸öË«Ç×--º¢×ӵĹØϵÁ´ÖУ¬ÔÚÕâÌõÁ´µÄ¶¥¶ËÊÇÆô¶¯Àà×°ÔØÆ÷£¬Ä©¶ËÊÇÒ»¸ö±»³ÆΪ“ϵͳÀà× ......

Java¼ÓÃܽâÃÜ


Eryptogram.java Îļþ£º
package com.cube.limail.util;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
/**
 * ¼ÓÃܽâÃÜÀà
 * @author Ò¶Ê÷Éî
 * @version 1.00 2008Äê01ÔÂ03ÈÕ
 */
 public  class  Eryptogram
{
&nb ......

java Adapterģʽ


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

Java¶ÔÏó¡¢ÒýÓÃ

Java¶ÔÏó¼°ÒýÓÃ
    Java¶ÔÏó¼°ÒýÓÃÊÇÈÝÒ×»ìÏýÈ´ÓÖ±ØÐëÕÆÎյĻù´¡ÖªÊ¶£¬±¾Õ²ûÊöJava¶ÔÏóºÍÒýÓõĸÅÄÒÔ¼°ÓëÆäÃÜÇÐÏà¹ØµÄ²ÎÊý´«µÝ¡£
    ÏÈ¿´ÏÂÃæµÄ³ÌÐò£º
    StringBuffer s;
    s = new StringBuffer("Hello World!");
    µÚÒ»¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ