不用IE你用JCreator Pro也可以的,后者还可以自动生成html文件的。
很方便的。

解决方案 »

  1.   

    提示一下两种方法调DOS命令 p.exec
    使用SWING组件
      

  2.   

    Process process = Runtime.getRuntime().exec("cmd.exe /c start http://www.csdn.net");
      

  3.   

    如果是本地html文件:
    try{
    Process process = Runtime.getRuntime().exec("cmd.exe /c start Noname.html");
    }catch(Exception e){e.printStackTrace();}
      

  4.   

    Applet
    ?
    还是
    Application
    ?
      

  5.   

    foryouever(光速兔子) :说的是可行的。我已经会了。
    谢谢各位。
    下面是我的一些代码:
    public class IEExecuter implements HyperLinkExecutable
    {
    jet.util.TempFile tempFile = new jet.util.TempFile("","~url","url");
    public String execute(java.awt.Component comp, String displayValue, String url)
    {
    if(url == null || url.length() == 0)
    return null; Runtime runtime;
    String filename; runtime = Runtime.getRuntime();
    try{
    if ( jet.util.SystemTools.isWinNT ) // check Windows NT serial in the future
    {
    File f = tempFile.createTempFile();
    FileOutputStream fout = new FileOutputStream(f);
    PrintWriter dout = new PrintWriter(fout);
    dout.println("[InternetShortcut]");
    dout.println("URL=" + url);
    dout.println("Modified=F0DB6E5C9293BE0179");
    dout.close();
    fout.close();
    Process p = runtime.exec("cmd /c start " + f.getAbsolutePath());
    p.waitFor();
    synchronized(this)
    {
    try{
    wait(3000);
    }catch(Exception e){
    }
    }
    f.delete();
    }
    else
    {
    runtime.exec("start " + url);
    }
    }
    catch(Exception e)
    {
    JDebug.WARNING(e);
    return e.getMessage();
    }
    return null;
    }
    }