applet woes
I was hoping someone could help me out figure out whats wrong with my applet.. for some reason its not loading on everyone's computers that I've had test it so far, out of 5 people, it only works on 2 computers. I setup a fresh win2k virtual machine, with just the jdk installed and it ran ok through the browser. On two of the computers the error in the browser was "applet notinited"
I made sure the ftp transfer to the webserver was ascii, im certain permissions are correct, and right now only one class is used. The only thing I havent tried is using jdk 1.5 to compile instead of 1.6, because im stuck on a really slow connection for a couple weeks. Any ideas?
cheers,
d
code:
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
publicclass RSVPextends JAppletimplements ActionListener
{
TextArea textArea1 =new
TextArea("",0,0,TextArea.SCROLLBARS_NONE);
TextField textField1 =new java.awt.TextField();
Button rsvpButton =new java.awt.Button();
private String instructions =new String("test test test");
private String notFinished =new String("test2 test2 test2");
publicvoid init()
{
getContentPane().setLayout(null);
setSize(333,159);
getContentPane().add(textArea1);
textArea1.setBackground(Color.white);
textArea1.setBounds(24,12,286,77);
textArea1.setEditable(false);
getContentPane().add(textField1);
textField1.setBackground(Color.white);
textField1.setBounds(24,96,216,24);
rsvpButton.setLabel("RSVP!");
getContentPane().add(rsvpButton);
rsvpButton.setBackground(java.awt.Color.lightGray);
rsvpButton.setBounds(252,96,62,27);
rsvpButton.addActionListener(this);
textArea1.setText(instructions);
}
publicvoid actionPerformed(ActionEvent e)
{
Component c = (Component) e.getSource();
if(c == rsvpButton){
textArea1.setText(notFinished);
textArea1.repaint();
return;
}
}
}
and the html:
<html>
<center>
<object alt="Java Runtime Environment is not working on your system" border="0" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="159" width="333">
<param name="codebase" value="./"/><param name="code" value="RSVP.class"/>
<comment>
<applet alt="Java Runtime Environment is not working on your system" border="0" code="RSVP.class" codebase="./" height="159" width="333">
</applet>
</comment>
</object>
</center>
</html>

