URL url;
try{
String s=textField1.getText();
url=new URL(s);
this.getAppletContext().showDocument(url);
}
catch(MalformedURLException ex1){}
try{
String s=textField1.getText();
url=new URL(s);
this.getAppletContext().showDocument(url);
}
catch(MalformedURLException ex1){}
这句,它不出错,但也没有网页出来,你的this.getAppletContext().showDocument(url);这句不也差不多吗?