Java Swing¶àÏß³ÌËÀËøÎÊÌâ½âÎö
Java Swing¶àÏß³ÌËÀËøÎÊÌâ½âÎö
ÔÚ»ùÓÚJava Swing½øÐÐͼÐνçÃ濪·¢µÄʱºò£¬¾³£Óöµ½µÄ¾ÍÊÇSwing¶àÏß³ÌÎÊÌâ¡£ÎÒÃÇ¿ÉÒÔÏëÏëһϣ¬Èç¹ûÐèÒªÔÚÒ»¸öͼÐνçÃæÉÏÏÔʾºÜ¶àÊý¾Ý£¬ÕâЩÊý¾ÝÊǾ¹ý³¤Ê±¼ä¡¢¸´ÔӵIJéѯºÍÔËËãµÃµ½µÄ¡£Èç¹ûÔÚͼÐνçÃæµÄͬһ¸öÏß³ÌÖнøÐвéѯºÍÔËË㹤×÷Ôò»áµ¼ÖÂÒ»¶Îʱ¼ä½çÃæ´¦ÓÚËÀ»ú״̬£¬Õâ»á¸øÓû§´øÀ´²»Á¼µÄ»¥¶¯¸ÐÊÜ¡£ÎªÁ˽â¾öÕâ¸öÎÊÌ⣬һ°ã»áµ¥¶ÀÆô¶¯Ò»¸öÏ߳̽øÐÐÔËËãºÍ²éѯ¹¤×÷£¬²¢Ëæʱ¸üÐÂͼÐνçÃæ¡£Õâʱºò£¬ÁíÒ»¸öÎÊÌâ¾Í³öÏÖÁË£¬¿ÉÄܲ»½öûÓнâ¾öÔÀ´Å¼¶ûËÀ»úÎÊÌ⣬»¹¿ÉÄܵ¼Ö³ÌÐò³¹µ×ËÀµô¡£ÐÒÔ˵ÄÊÇÔÚJDKÖаµ²ØÁËÒ»¸öÖжϳÌÐòµÄ¿ì½Ý¼ü£¬¾ÍÊÇCTRL+BREAK£¬Õâ¸ö¿ì½Ý¼üSun²¢Ã»ÓÐÔÚÎĵµÖй«²¼¡£Èç¹ûÔÚÃüÁîÐÐģʽÏÂÆô¶¯Java³ÌÐò£¬È»ºó°´CTRL+BREAK¼ü£¬»áµÃµ½¶ÑÕ»µÄ¸ú×ÙÐÅÏ¢¡£´ÓÕâЩ¸ú×ÙÐÅÏ¢ÖоͿÉÒÔÖªµÀ¾ßÌåÒý·¢ËÀ»úµÄλÖÃÁË¡£
µ±Ò»¸ö³ÌÐò²úÉúËÀËøµÄʱºò£¬ÄãÒ»¶¨»áÏ£Íû¾¡¿ìÕÒµ½ÔÒò²¢ÇÒ½â¾öËü¡£Õâʱºò£¬ÄãÒ»°ãµÄ¾«Á¦»áÓÃÔÚ²éÕÒÒý·¢ËÀËøµÄλÖã¬ÁíÒ»°ëµÄ¾«Á¦»áÓÃÓÚ¶Ô¶ÑÕ»½øÐиú×Ùһȷ¶¨Òý·¢ËÀËøµÄÔÒò¡£µ«ÊÇÔÚJava Swing³ÌÐòÖУ¬ÄãµÄËùÓÐŬÁ¦¿ÉÄܶ¼ÊÇûÓмÛÖµµÄ¡£ÕâÊÇÒòΪJava¶ÔSwingµÄ¶àÏ̱߳à³ÌÓÐÒ»¸öÌØÊâÒªÇó¡£¾ÍÊÇÔÚSwingÀֻÄÜÔÚÓëSwingÏàͬµÄÏß³ÌÀï¶ÔGUIÔª¼þ½øÐÐÐ޸ġ£
Ò²¾ÍÊÇ˵£¬Èç¹ûÄãÒªÖ´ÐÐÀàËÆÓÚjLabel1.setText("blabla")´úÂ룬±ØÐëÔÚSwingÏß³ÌÖУ¬¶ø²»ÔÊÐíÔÚÆäËûÏ̵߳±ÖС£Èç¹û±ØÐëÔÚÆäËûÏß³ÌÖÐÐÞ¸ÄÔª¼þ£¬¿ÉÒÔʹÓÃÀàËÆһϷ½Ê½½â¾ö£º
SwingUtilities.invokeLater(new Runnable() {
public void run() {
jLabel1.setText("blabla");
}
}
invokeLater·½·¨ËäÈ»±íÃæÓÐʱ¼äÑÓ³ÙÖ´Ðк¬Ò壬µ«ÊÇʵ¼ÊÉϼ¸ºõûÓÐÈκÎÓ°Ï죬¿ÉÄÜÔÚ¼¸ºÁÃëÖ®ÄھͻᱻִÐС£ÁíÍ⻹ÓÐÒ»¸öinvokeAndWait·½·¨£¬³ý·ÇÌØÊâÐèÒª£¬·ñÔò¼¸ºõÊDz»Óõġ£
ÔÚ²»Ê¹ÓÃinvokeLaterµÄÇé¿öÏ£¬µ¼ÖÂË¢ÐÂÎÊÌâÊÇ¿ÉÒÔÀí½âµÄ£¬µ«Êǵ¼ÖÂËÀËø¾ÍÓŵãÁîÈË·ËÒÄËù˼ÁË¡£ÐÒÔ˵ÄÊÇ£¬²»ÊÇÈκÎʱºò¶¼ÐèÒªµ÷Óøķ½·¨£¬ÕâÊÇÒòΪ´ó¶àÊýÇé¿öÏ£¬ÎÒÃǶ¼ÊÇÔÚÓëSwingͬһ¸öÏß³ÌÀï½øÐнçÃæ¸üС£ÀýÈç¼àÌý°´Å¥µã»÷ʼþµÄActionListener.actionPerformed·½·¨¾ÍÊÇÔËÐÐÔÚÓëSwingÏàͬµÄÏß³ÌÖеġ£µ«ÊÇÈç¹ûÔڻص÷ÀàÖÐÒýÓÃÁËÁíÒ»¸öÀ࣬²¢ÇÒÊDz»ÊôÓÚAWT/SwingµÄ£¬ÄÇô½á¹û¾ÍºÜÄÑÈ·¶¨ÁË¡£ËùÒÔ˵ʹÓÃinvokeLaterÓ¦¸ÃÊÇ×ȫµÄ¡£
Ïà¹ØÎĵµ£º
Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......
1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£
2. ±àÂë»ù±¾ÖªÊ ......
XML Êý¾Ý¸ñʽºÜÄÑËÑË÷£¬µ«ÊÇ×î½üËæ×Å XQuery API µÄ³öÏÖ£¬XML ËÑË÷±äµÃ·Ç³£Áé»îºÍ¼òµ¥¡£¶ÔÓÚʹÓà SAX¡¢DOM¡¢JDOM¡¢JAXP µÈ´¦Àí XML ÎĵµµÄ Java™ ³ÌÐòÔ±À´Ëµ£¬¹¤¾ßÏäÖÐÔö¼Ó XQuery API for Java ÊÇÒ»¼þÖµµÃ¸ßÐ˵ÄÊ¡£ÏÖÔÚ Java ³ÌÐòÔ±²»ÓÃÔÙÇóÖúÓÚϵͳµ÷ÓûòÕß±¿×¾µÄ API ¾ÍÄÜÀûÓà XQuery µÄÇ¿´ó¹¦ÄÜÁË£¬Sun ÌṩÁËÒ» ......
0¡¡ÒýÑÔ
´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÊÇÒ»¸ö±È½Ï³£ÓõŦÄÜ£¬ÔÚ JDK 5.0 ÒÔÇ°µÄ°æ±¾ÖеÄʵÏÖÊDZȽϸ´Ôӵģ¬ÐèÒªÊÖ¹¤´¦ÀíϵͳµÄÊäÈëÁ÷¡£ÓÐÒâ˼µÄÊÇ£¬´Ó JDK 5.0 °æ±¾¿ªÊ¼£¬ÄÜ´Ó¿ØÖÆ̨ÖÐÊäÈëÊý¾ÝµÄ·½·¨Ã¿Ôö¼ÓÒ»¸ö°æ±¾ºÅ£¬¾ÍÓÐÒ»ÖÖÐÂÔöµÄ·½·¨£¬ÕâÒ²Ôö¼ÓÁËÑ¡ÔñµÄÖÖÀ࣬¿ÉÒÔÒÀ¾Ý²»Í¬µÄÒªÇóÀ´½øÐÐÑ¡Ôñ¡£ÏÂÃæÀ´¿´Ò»Ï ......