applet与jsp通讯问题:applet为何不能正确显示网页?
我的按钮的代码是这样的,但为何按下后没有反应,而且也没有报错信息?
void jButton1_actionPerformed(ActionEvent e) {
AppletContext ac = getAppletContext();
try
{ ac.showDocument(new URL("haha.html"));
}
catch( MalformedURLException ee )
{
System.err.println( "MalformedURLException caught!" );
System.err.println( ee.getMessage() );
ee.printStackTrace( System.err );
}
}