Results 1 to 1 of 1
- 02-13-2008, 10:34 AM #1
Member
- Join Date
- Feb 2008
- Posts
- 3
- Rep Power
- 0
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
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);
}
}
}Last edited by mikau; 02-13-2008 at 11:22 AM.
Similar Threads
-
getYear deprecated method
By ravian in forum New To JavaReplies: 5Last Post: 01-05-2011, 09:50 AM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 03:40 PM -
Using Deprecated Methods
By ravian in forum New To JavaReplies: 3Last Post: 11-23-2007, 08:58 PM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 10:33 PM -
method size is deprecated
By oregon in forum New To JavaReplies: 4Last Post: 08-05-2007, 06:59 PM
Bookmarks