按钮的响应代码可以参考下面:public  boolean action(Event event, Object o)
{
  AppletContext  ac;
  URL           url;

 try{
      url=new URL("http://127.0.0.1");
      if(event.target instanceof Button)
{
  ac=getAppletContext();
  ac.showDocument(url,"_blank"); 
}
  
    }catch(MalformedURLException e){
return true; }
     return true;
}