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

java ʼþ»úÖÆÌ½ÌÖ

javaÖеÄʼþ»úÖÆµÄ²ÎÓëÕßÓÐ3ÖÖ½ÇÉ«£º
1.event object£º¾ÍÊÇʼþ²úÉúʱ¾ßÌåµÄ“ʼþ”£¬ÓÃÓÚlistenerµÄÏàÓ¦µÄ·½·¨Ö®ÖУ¬×÷Ϊ²ÎÊý£¬Ò»°ã´æÔÚÓëlisternerµÄ·½·¨Ö®ÖÐ
2.event source£º¾ßÌåµÄ½ÓÊÜʼþµÄʵÌ壬±ÈÈç˵£¬Äãµã»÷Ò»¸öbutton£¬ÄÇôbutton¾ÍÊÇevent source£¬ÕâÑùÄã±ØÐëʹbutton¶ÔijЩʼþ½øÐÐÏàÓ¦£¬Äã¾ÍÐèҪע²áÌØ¶¨µÄlistener£¬±ÈÈç˵MouseEventÖ®ÖÐµÄ MouseClicked·½·¨£¬ÕâÊÇËû¾Í±ØÐëÓÐÁËadd·½·¨
3.event listener£º¾ßÌåµÄ¶Ô¼àÌýµÄʼþÀ࣬µ±ÓÐÆä¶ÔÓ¦µÄevent object²úÉúµÄʱºò£¬Ëü¾Íµ÷ÓÃÏàÓ¦µÄ·½·¨£¬½øÐд¦Àí¡£ÔÚwindows³ÌÐòÉè¼ÆÀï±ßÕâÖÖÏàӦʹÓÃcallback»úÖÆÀ´ÊµÏÖµÄ
ÏÈ¿´¿´jdkÌṩµÄevent°ü£º
public interface EventListener£ºËùÓÐʼþÕìÌýÆ÷½Ó¿Ú±ØÐëÀ©Õ¹µÄ±ê¼Ç½Ó¿Ú¡£
public class EventObject extends Object implements Serializable
ËùÓÐʼþ״̬¶ÔÏó¶¼½«´ÓÆäÅÉÉúµÄ¸ùÀà¡£ ËùÓÐ Event ÔÚ¹¹Ôìʱ¶¼ÒýÓÃÁ˶ÔÏó "source"£¬ÔÚÂß¼­ÉÏÈÏΪ¸Ã¶ÔÏóÊÇ×î³õ·¢ÉúÓÐ¹Ø Event µÄ¶ÔÏó¡£
        ÔÚJava2´¦Àíʼþʱ£¬Ã»ÓвÉÓÃdispatchEvent()-postEvent()-handleEvent()·½Ê½£¬²ÉÓÃÁ˼àÌýÆ÷À࣬ÿ¸öʼþÀà¶¼ÓÐÏà¹ØÁªµÄ¼àÌýÆ÷½Ó¿Ú¡£Ê¼þ´ÓʼþÔ´µ½¼àÌýÕߵĴ«µÝÊÇͨ¹ý¶ÔÄ¿±ê¼àÌýÕß¶ÔÏóµÄJava·½·¨µ÷ÓýøÐеġ£ 
¡¡¡¡¶Ôÿ¸öÃ÷È·µÄʼþµÄ·¢Éú£¬¶¼ÏàÓ¦µØ¶¨ÒåÒ»¸öÃ÷È·µÄJava·½·¨¡£ÕâЩ·½·¨¶¼¼¯Öж¨ÒåÔÚʼþ¼àÌýÕߣ¨EventListener£©½Ó¿ÚÖУ¬Õâ¸ö½Ó¿ÚÒª¼Ì³Ð java.util.EventListener¡£ ʵÏÖÁËʼþ¼àÌýÕß½Ó¿ÚÖÐһЩ»òÈ«²¿·½·¨µÄÀà¾ÍÊÇʼþ¼àÌýÕß¡£ 
¡¡¡¡°éËæ×ÅʼþµÄ·¢Éú£¬ÏàÓ¦µÄ״̬ͨ³£¶¼·â×°ÔÚʼþ״̬¶ÔÏóÖУ¬¸Ã¶ÔÏó±ØÐë¼Ì³Ð×Ôjava.util.EventObject¡£Ê¼þ״̬¶ÔÏó×÷Ϊµ¥²Î´«µÝ¸øÓ¦ÏìÓ¦¸ÃʼþµÄ¼àÌýÕß·½·¨ÖС£·¢³öijÖÖÌØ¶¨Ê¼þµÄʼþÔ´µÄ±êʶÊÇ£º×ñ´Ó¹æ¶¨µÄÉè¼Æ¸ñʽΪʼþ¼àÌýÕß¶¨Òå×¢²á·½·¨£¬²¢½ÓÊܶÔÖ¸¶¨Ê¼þ¼àÌýÕß½Ó¿ÚʵÀýµÄÒýÓᣠ
¿ªÊ¼Ö®Ç°Ê×ÏÈÎʸöÎÊÌ⣺ÄúÊìϤjava.util.EventObject ºÍjava.util.EventListenerÁ½¸öÀàÒÔ¼°ËûÃÇÒÑÓеÄ×ÓÀàÂð£¿
Èç¹ûÄãÒѾ­Äܹ»ÊìÁ·Ê¹ÓÃjdkΪÎÒÃÇÌṩµÄʼþ¼àÌýÆ÷£¬²¢ÇÒºÜÊìϤMouseEvent, KeyEvent, WindowEventµÈµÈÕâЩjdkΪÎÒÃÇ×¼±¸ºÃµÄʼþ£¬ÄÇôÏë±ØÄã¶ÔjavaµÄʼþ»úÖÆÒѾ­ÓÐËùÀí½â¡£µ«ÊÇÒ²ÐíÄ㻹ÊǾõµÃËäÈ»ÓÃÆðÀ´Ã»Ê²Ã´ÎÊÌ⣬µ«ÊÇÔ­Àí»¹ÊÇÓÐЩºýÍ¿£¬ÄÇôÏÂÃæÎÒÃÇÔÙ½øÒ»²½×Ô¼ºÊµÏÖÕâЩʼþºÍ¼àÌýÆ÷£¬ÎÒÃǰÑÕâ¸öÈ¡ÃûΪ×Ô¶¨Òåʼþ¡£
Æäʵ×Ô¶¨ÒåÊÂ


Ïà¹ØÎĵµ£º

¹ØÓÚ½«java³ÌÐò×ö³ÉexeÎļþµÄ¼¸ÖÖ×ö·¨£¨ZT£©

 ¿ÉÒÔ°ÑÆÕͨµÄJava³ÌÐò×ö³ÉÕæÕýµÄexe,Ò²¾ÍÊǵ¥Ò»¸öexe¾Í¿ÉÒÔÔÚûÓа²×°JVMµÄ»úÆ÷ÉÏÔËÐС£ÕâÑùµÄ¹¤¾ß³£¼ûµÄÓÐJETºÍgcj.ǰÕßÊÇÊշѵ쬶øÇÒ×ö³öÀ´µÄexe»¹ÊÇÐèÒªÒ»¶Ñdll¡£ÍƼöʹÓÃgcj.ËûÓÐwindowsºÍLinux°æ£¬Ö±½ÓÏÂÔØzip°ü£¬²»ÐèÒª°²×°£¬ÀïÃæÓв»ÉÙÀý×Ó£¬Ò»Ð©buildµÄÅú´¦ÀíÎļþ¡£´ÓÔ­ÀíÀ´Ëµgcj×Ô¼ºÊµÏÖÁËJVM¹æ·¶£¬Ò²¾ÍÊÇÄ ......

Name java:comp is not bound in this Context

 
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
ÔÚtomcatÖз¢²¼webÏîÄ¿£¬¿ÉÄÜÊÇÒòΪspringÖÐÅäÖÃÁËjndi£¨Ö»ÅäÖÃÁËjndi£¬ÆäËûµÄÓй¤¾ß°ü·â×°ÁË£©¡£
Æô¶¯µÄʱºò±¨´í£¨ÔÚÏîĿĿ¼Ï£¬ÔÚtomcatÖÐÅäÖÃcontextÖ¸ÏòÏîĿĿ¼¾ÍûÎÊÌ⣬´ò°ü·¢²¼µ½
tomcat¾Í±¨´íÁË£©£¬Å×µÄÒì³£ÊÇ£º
jav ......

Java & .NET

 http://www.gotapi.com/
 ÓïÑÔ£ºÓ¢Óï
 ¼ò½é£ºHTML,CSS,XPATH,XSL,JAVASCRIPTµÈAPIµÄ²éÑ¯ÍøÕ¾¡£
http://www.w3schools.com/
 ÓïÑÔ£ºÓ¢Óï
 ¼ò½é£ºW3CÖÆ¶¨µÄ±ê×¼ÖîÈçXML,HTML,XSLµÈµÈµÄÔÚÏßѧϰ½Ì³Ì¡£
http://www.xml.org.cn/
 ÓïÑÔ£ºÖÐÎÄ
 ¼ò½é£º¿ÉÒÔ˵ÊÇXMLµÄÖйú¹Ù·½Íø°É¡£W3C ......

Javaʼþ»úÖÆ

 Ê¼þÔ´¸ºÔð²úÉúʼþ
ʼþÀࣺ¶¨ÒåʼþµÄÌØÕ÷£»
¼àÌýÆ÷½Ó¿Ú£º¶¨Òå¼àÌýÆ÷Ó¦¸ÃʵÏֵŦÄÜ£»
¼àÌýÆ÷£ºÊµÏÖ¼àÌýÆ÷½Ó¿Ú£¬¼àÌýʼþµÄ·¢Éú²¢×÷³öÏìÓ¦£»
ËùÓеÄʼþÀà±ØÐë¼Ì³ÐJavaʼþ»ùÀ࣬¼´java.util.EventObject£»EventObject(Object source)ÊÇEventObjectΨһµÄ¹¹Ôì·½·¨£¬ÕâÒâζ×ÅËùÓÐʼþ±ØÐëÔÚʵÀý»¯Ê±¾ÍÖ¸¶¨Ê¼þÔ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ