在swing中,哪个类实现了,点击后效果是打开浏览器的呢?哪位知道的告诉下,我找了很久都没找到,很郁闷
谢谢了~

解决方案 »

  1.   

    URL url = new URL("ftp://nc_user:[email protected]:21/ncftp/ehr/58.pdf");  
    getApplet().getAppletContext().showDocument(url,"_blank");
      

  2.   

    Runtime.getRuntime().exec("cmd   /c   start " + urlAddress);就行了吧
      

  3.   

    Runtime.getRuntime().exec("explorer.exe " + "http://www.baidu.com");
      

  4.   

    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "http://www.baidu.com");
      

  5.   

    如果实现简单的html读取显示,JEditPane就可以了