本帖最后由 JJ___JJ 于 2010-08-26 12:46:57 编辑

解决方案 »

  1.   

    附上两方法api.
    NativeInterface.open(); open
    public static void open()Open the native interface, which creates the peer VM that handles the native side of the native integration.
    Initialization takes place if the interface was not already initialized. If initialization was not explicitely performed, this method should be called early in 
    the program, the best place being as the first call in the main method. 
    NativeInterface.runEventPump();runEventPump
    public static void runEventPump()Run the native event pump. Certain platforms require this method call at the end of the main method to function properly, so it is suggested to always add it.
      

  2.   

    兄弟,不知道你在哪弄的DJNativeSwing的jar包啊?能不能给小弟用下?我的QQ564693889。。非常感谢。。
      

  3.   


    你Google下DJNativeSwing啊, 它的主页肯定有啦...整个框架都可以download下来.
      

  4.   

    http://sourceforge.net/projects/djproject/files/DJ%20Native%20Swing/
    下载页面..
      

  5.   

    我在一个Servelt中加载这个截图程序,可是,只在工程启动后,第一次调用的时候可以截图成功,后面的访问都不会给我截图,有谁知道为什么吗?
      

  6.   

    code:
    super.addWebBrowserListener(new WebBrowserAdapter() {
    public void loadingProgressChanged(WebBrowserEvent e) {
    // load finish
    if (e.getWebBrowser().getLoadingProgress() == 100) {

    }
    }
    });