为什么Applet在本地IIS打开没有问题,而在远端服务器上却不能打开? (200分)

  • 主题发起人 主题发起人 cyr
  • 开始时间 开始时间
C

cyr

Unregistered / Unconfirmed
GUEST, unregistred user!
程序代码如下:
// test1.html
<HTML>
<HEAD>
<TITLE>Applet HTML Page</TITLE>
</HEAD>
<BODY>
<H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3>
<P>
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<OBJECT
classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
WIDTH = 350 HEIGHT = 200 >
<PARAM NAME = CODE VALUE = "test1.class" >
<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
<PARAM NAME = "scriptable" VALUE = "false">
<COMMENT>
<EMBED
type = "application/x-java-applet;version=1.4"
CODE = "test1.class"
WIDTH = 350
HEIGHT = 200
scriptable = false
pluginspage = "http://java.sun.com/products/plugin/index.html#download">
<NOEMBED>

</NOEMBED>
</EMBED>
</COMMENT>
</OBJECT>
<!--
<APPLET CODE = "test1.class" WIDTH = 350 HEIGHT = 200>

</APPLET>
-->

<!--"END_CONVERTED_APPLET"-->
</P>
<HR WIDTH="100%"><FONT SIZE=-1><I>Generated by NetBeans IDE</I></FONT>
</BODY>
</HTML>

/*
* test1.java
*
* Created on 2003年6月23日, 下午12:25
*/
/**
*
* @author fscyr
*/
public class test1 extends javax.swing.JApplet {

/** Initializes the applet test1 */
public void init() {
initComponents();
}

/** This method is called from within the init() method to
* initialize the form.
* WARNING:do
NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
getContentPane().setLayout(new java.awt.FlowLayout());
jLabel1.setText("jLabel1");
getContentPane().add(jLabel1);
jButton1.setText("jButton1");
// 控制台显示这一句出现错误
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
getContentPane().add(jButton1);
jTextField1.setText("jTextField1");
getContentPane().add(jTextField1);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// Add your handling code here:
jLabel1.setText(jTextField1.getText());
}


// Variables declaration -do
not modify
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JTextField jTextField1;
// End of variables declaration

}


 
后退
顶部