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

XULRunner with Java: JavaXPCOM Tutorial 1

Õâƪ½Ì³Ì¸üÐÂÓÚ2008ÄêÏÄÌ죬ÓÃÀ´¼¯³ÉSWTºÍXULRunnerÀ´ÔÚSWTÀïÏÔʾһ¸öä¯ÀÀÆ÷¡£ÒªÏë»ñµÃ¸ü¶àÐÅÏ¢£¬Çë²Î¿¼
http://www.eclipse.org/swt/faq.php#whatisbrowser
1£¬¼ò½é
       Õâƪ½Ì³ÌÓÐÁ½¸öÄ¿µÄ¡£Ê×ÏÈ£¬ÎÒÃÇÄÜѧµ½Ò»Ð©XPCOMµÄ¸ÅÄîºÍÔõôͨ¹ýJavaXPCOMÀ´ÔÚjavaÀïʹÓÃËü¡£Æä´Î£¬ÎÒÃÇѧµ½ÔõôÔÚ
java³ÌÐòÀïǶÈëFirefoxä¯ÀÀÆ÷¡£
       ÕâÀïµÄÀý×ÓÎÒÃÇ¿ª·¢£¬±àÒëºÍ²âÊԵĻ·¾³ÊÇUbuntu 8.04ºÍJDK1.6£¨Òë×¢£¬ÎÒʹÓõÄÊÇwindows xp£©¡£ÎÒÃÇÔÚwindowsÏÂÓöµ½
Ò»¸öÎÊÌ⣬Óû§ÎÞ·¨ÔÚformÀïÊäÈëÎı¾£¬ËäÈ»ÔÚÀý×ÓÀï²¢²»ÐèÒªÕâµã¡£
1.1 ÏÂÔØ×ÊÔ´  
      Àý×ÓµÄÔ´ÂëÔÚÏà¹ØÕ½ڵĿªÊ¼ÒÔ¼°ÎÄÕµÄ×îºó¶¼ÓÐÏÂÔØ£¬µ±È»£¬ÄãÒ²¿ÉÒÔÏÂÔØËùÓеĴúÂë
http://ladyr.es/wiki/attachment/wiki/XPCOMGuide/complete-guide-resources-windows.zip  windows
http://ladyr.es/wiki/attachment/wiki/XPCOMGuide/complete-guide-resources-linux.zip   linux
2. °²×°XULRunner
     JavaXPCOMÊÇÒ»¸öÓÃÀ´·ÃÎÊXULRunnerÀïXPCOM×é¼þºÍ·þÎñµÄjava¿â¡£ÔÚÕâÀïÎÒÃǽéÉÜÁËһЩ·½·¨Í¨¹ýjavaÀ´Ê¹ÓÃXULRunner×é¼þ
ºÍ·þÎñ¡£JavaXPCOMÒ²ÄÜÔÚjava³ÌÐòÀïǶÈëGecko¡£JavaXPCOMÐèÒªJava1.4.2»òÕ߸üеİ汾¡£ÎªÁËʹÓÃJavaXPCOMÄãÐèÒªÏÂÃæµÄ²½Öè
£º
    XULRunner£ºÄãÐèÒª°²×°XULRunner¡£ËüÔÚ¿ª·¢Öв¢²»¶Ï±ä»¯¡£Õâ¸ö½Ì³ÌʹÓõÄÊÇ1.9µÄ°æ±¾£¬Õâ¸ö°æ±¾builtµÄʱ¼äÊÇ2008-6-19.
°²×°XULRunnerµÄ·½·¨£º
      1. ¸ù¾Ý×Ô¼ºµÄ²Ù×÷ϵͳÏÂÔغÏÊʵݲװ°ü£¨Òë×¢£¬ÎÒÔÚwindows xpÏÂÎÞ·¨Ê¹ÓÃXULRunner1.9£¬ÎÒʹÓõÄÊÇ
                xulrunner-1.8.1.3.en-US.win32-20080128£©
   2.½âѹËü£¬±ÈÈç°ÑËü½âѹµ½c:\XULRunner
   3.½øÈëÕâ¸ö·¾¶
   4.жÔØÒÔÇ°µÄ×¢²á
   5.×¢²áÕâ¸ö°æ±¾
   £¨Òë×¢£º×¢²á²¢²»ÊDZØÐëµÄ£¬×¢²áºó¿ÉÒÔÔÚ³ÌÐòÀï²»ÓÃÖªµÀXULRunnerµÄ·¾¶£¬²»×¢²áÒ²¿ÉÒÔ£¬²»¹ý³ÌÐòÀïÒªÖªµÀ·¾¶£©
javaxpcom.jar
MozillaInterface.jar
MozillaGlue.jar
3.ÔÚJavaÀïʹÓÃJavaXPCOM
3.1 JavaXPCOM³õʼ»¯
XPCOM£¨Mozilla Cross-platform Object Model£©ÊÇÒ»¸ö»úÓö×é¼þµÄ¼Ü


Ïà¹ØÎĵµ£º

JAVA±íµ¥×Ô¶¨ÒåµÄÉèÏëÓëºÃ´¦

˵µ½OAϵͳ¾Í»áÏëµ½·¢²¼¹«¸æ¡¢ÉóÅúÎļþ¡¢Îļþ¹ÜÀíµÈµÈÕâЩ¹¦ÄÜ£¬£¬µ½ÁË¿ª·¢ÈËÔ±ÊÖÀï¾ÍÊÇ´æ´¢Êý¾Ý¡¢²éѯÊý¾Ý£¬ÍùÍù²»Í£µÄ×öÖظ´¹¤×÷£¬ÓÚÊǾÍÓÐÁËOA±íµ¥ÒýÇæµÄÉèÏëºÍ¹¹Ë¼¡£ÓÃjavascript¶¨Òå±íµ¥£¬ÓÃjavaÇý¶¯XML£¬×Ô¶¯´´½¨¡¢ÐÞ¸ÄÊý¾Ý¿â¡£ÊµÏÖ¶Ô±íµ¥µÄͼÐλ¯ÖÆ×÷£¬¼´Ê¹ÊǷǼ¼ÊõÈËÔ±Ò²¿ÉËæÒâÉè¼Æ³ö×Ô¼º¹¹ÏëµÄ±íµ¥¹¦ÄÜ¡£
JAVA³ÌÐ ......

java cstʱÇøת»»


BODY { color: #000000; font-size: 9pt; font-family: ËÎÌå }
TABLE { font-size: 9pt; font-family: ËÎÌå }
SimpleDateFormat sdfy = new SimpleDateFormat("HH:mm"); 
        String tt =
"Tue Feb 09 10:43:00 CST 2010";
   &n ......

java ¸ñʽ»¯Êä³ö

Ò»¡¢java.util.Formatter
 
java.util.Formatter ÊÇJDK1.5ÐÂÔöµÄÀà¿â£¬¹¦ÄܺÜÇ¿´ó£¬µ«ÊDz»ºÃÕÆÎÕ£¬¾ÍÏñÏÂÆåÒ»Ñù£¬ÖªµÀÈçºÎ×ßÆå×Ó£¬ºÍÊìÁ·Ó¦ÓÃÍêÈ«ÊÇÁ½ÂëÊ¡£
 
¸ñʽ»¯Ö÷ÒªÓÃÔÚÎı¾Êä³ö·½Ã棬±ÈÈ磬Êý×Ö¡¢ÈÕÆÚ¡¢½ð¶îµÈ£¬»¹ÓÐÀàËƳ¬ÊеĹºÎﵥСƱµÈµÈ£¬¶¼»áÓõ½¸ñʽ»¯Êä³öµÄ¹¤¾ß¡£ÔÚ´ËÀàû³öÏÖ֮ǰ£¬Ö»ÄÜͨ¹ý¿ ......

Java·´ÉäÖÐMethodÀàinvoke·½·¨µÄÓ÷¨

/**
* InvokeTester.java
* °æȨËùÓÐ(C) 2010 cuiran2001@163.com
* ´´½¨:´ÞȽ 2010-2-9 ÏÂÎç02:07:13
*/
package com.timer.demo.objectsocket;
import java.lang.reflect.Method;
/**
* @author ´ÞȽ
*
*/
public class InvokeTester {
public int add(int param1, int param2) {
return param ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ