I need help with a deprecated program
Hi everybody :)
My problem Is not deprecation related, I mistaked but can't edit the title. I run this program with appletviewer but it says that the file of appletviewer properties: -location that ends on /.hotjava/properties- can't be readed using predetermined values. It's a translation from spanish, so it may not be exact.
how do i fix it?. Can i transform it into a non applet application?
I really need to get this done by today's afternoon.
Thanks
Quote:
package ejemplos;
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class boton extends Applet implements ActionListener {
TextField text1;
Button button1;
public void init()
{
text1 = new TextField(20);
add(text1);
button1 = new Button("Pulsa este boton");
add(button1);
button1.addActionListener(this);
}
public void actionPerformed(ActionEvent event)
{
String texto = new String ("Muy bien!!!");
if(event.getSource() == button1){
text1.setText(texto);
}
}
}