Use the following code and see what will happen.( You have to add a main to run it standlone)
try
{
System.out.println("Button clicked");
URL rl = new URL(myUrl);
getAppletContext().showDocument(rl);
}
catch(MalformedURLException y)
{
System.out.println("Url wrong");
}
catch(Exception excv) {
excv.printStackTrace();
}
try
{
System.out.println("Button clicked");
URL rl = new URL(myUrl);
getAppletContext().showDocument(rl);
}
catch(MalformedURLException y)
{
System.out.println("Url wrong");
}
catch(Exception excv) {
excv.printStackTrace();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货