不用积分的,大家下载了都是为了学习嘛,呵呵,支持爱好学习的人!!!
****************************************************
JIDC提供了一种访问桌面组件的API其中JDK6.0就采纳了其中了一些,比如系统栏图标的SystemTray和SystemIcon,还有代表桌面的Desktop等等,可见这个API是挺不错的。由于网页浏览器的特殊性,标准的JDK并没有把它加入进来,但是我们一样可以下载它来使用这个功能。明显地,这个功能是用本地方法实现的,所以下载完以后,把jdic.dll放到我们的path目录中,比如system32文件夹下面,然后我们就可以使用它的功能从而增加我们的JAVA程序了。
例子代码如下:
/*
* Test1.java
*
* Created on 2007-10-2, 17:29:30
*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package test2;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import org.jdesktop.jdic.browser.IWebBrowser;
import org.jdesktop.jdic.browser.WebBrowser;
import org.jdesktop.jdic.browser.WebBrowserEvent;
import org.jdesktop.jdic.browser.WebBrowserListenerAdapter;

/**
*
* @author hadeslee
*/
public class Test1 extends JPanel implements ActionListener {

 private JTextField input;
 private JButton go;
 private IWebBrowser web;

 public Test1() {
  super(new BorderLayout());
  initWindow();
 }

 private void initWindow() {
  try {
   web = new WebBrowser();
   web.addWebBrowserListener(new MyListener());
   go = new JButton("转到");
   input = new JTextField();
   JPanel up = new JPanel(new BorderLayout());
   up.add(input, BorderLayout.CENTER);
   up.add(go, BorderLayout.EAST);
   this.add(up, BorderLayout.NORTH);
   this.add(web.asComponent(), BorderLayout.CENTER);
   input.addActionListener(this);
   go.addActionListener(this);
  } catch (Exception ex) {
   Logger.getLogger(Test1.class.getName()).log(Level.SEVERE, null, ex);
  }
  JFrame jf = new JFrame("JAVA浏览器");
  jf.add(this, BorderLayout.CENTER);
  jf.setSize(500, 300);
  jf.setLocationRelativeTo(null);
  jf.setVisible(true);
  jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 }

 public void actionPerformed(ActionEvent ae) {
  doOpen();
 }

 private void doOpen() {
  try {
   String text = input.getText();
   if (text == null || text.equals("")) {
    return;
   }
   if (!text.toLowerCase().startsWith("http://")) {
    text = "http://" + text;
   }
   web.setURL(new URL(text));
  } catch (MalformedURLException ex) {
   Logger.getLogger(Test1.class.getName()).log(Level.SEVERE, null, ex);
  }
 }

 public static void main(String[] args) {
  new Test1();
 }

 private class MyListener extends WebBrowserListenerAdapter {

  private MyListener() {}

  @Override
  public void documentCompleted(WebBrowserEvent arg0) {
   System.out.println("文档下载完。。。");
   web.executeScript("alert('文档下载完毕!')");
   // web.setContent("

Hello world!!

" +
   // "点我");
   // web.removeWebBrowserListener(this);
  }
 }
}
它比一般的别的实现好的地方就是,它可以很完全地和JAVA代码进行交互,包括浏览器事件的监听,浏览器内容的获取,以及自己调用浏览器来执行一段javasript,这些都是很强大并且很实用的功能。
****************************************************

2022-11-27 20:00:35 1.32MB java
1
SAP_Private_Cloud_DNS_Integration_Guide
2022-11-21 18:21:04 2.69MB SAP
1
SAP_Private_Cloud_DNS_Integration_Scenarios
2022-11-21 18:21:03 625KB SAP
1
Unity引擎Pico开发工具包
2022-11-11 13:28:43 30.77MB unity pico
1
Qt Visual Studio Integration v1.2.2 for.VS.2003.2005.exe
2022-11-08 15:48:35 18MB Qt Visual Studio Integration
1
Qt Visual Studio Integration v1.2.2 for.VS.2003.2005.exe的破解,很好使得
2022-11-08 15:45:07 50KB QT
1
unity中的Oculus集成开发包Integration_v39.0
2022-10-14 14:56:44 391.04MB unity 综合资源 游戏引擎 oculus
1
tutorial-soap-spring-boot-cxf 教程如何使用 , 和创建,测试,部署,监视SOAP 接下来的每个步骤都基于前一个步骤。 因此,如果从第3步开始,则代码中将覆盖第1步和第2步。 步骤1-3:随博客文章一起发布: (或德语版: ) 向您展示如何设置一个简单的Spring Boot应用程序以及如何在嵌入式Tomcat中引导可运行的CXF-Framework。 从流行的汲取灵感,继承了一个完全更改的示例WebService-Definition作为WSDL 展示如何在构建时使用JAX-WS Commons Maven插件从WSDL生成JAXB类-只需运行 mvn clean generate-sources 首先使用SpringBoot,CXF和JAX-WS运行SOAP-Endpoint。 对于测试,请使用 (在Unittest中测试我们的服务将是后续步骤的一部分)。 完全合同优先,使用生成的JAX-WS服务类不包装WSDL并使用原始的WSDL-包括正确的URL和TargetNamespace(推荐) 步骤4:随博客文章一起发布: (或德语版本:
1
内容概要:Pico Unity XR 基础SDK包用于Unity 研发 适合人群:具备一定编程基础,工作1-3年的Unity研发人员 进行 Pico VR一体机开发
2022-09-23 17:07:13 54.43MB pico 一体机 Unity
1
ArrayComm 5G MAC-PHY FAPI Integration Guide_v1.0.0
2022-09-07 08:41:26 576KB 5GNR
1