Results 1 to 1 of 1
  1. #1
    mikau is offline Member
    Join Date
    Feb 2008
    Posts
    3
    Rep Power
    0

    Default 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

  1. getYear deprecated method
    By ravian in forum New To Java
    Replies: 5
    Last Post: 01-05-2011, 09:50 AM
  2. Replies: 0
    Last Post: 04-04-2008, 03:40 PM
  3. Using Deprecated Methods
    By ravian in forum New To Java
    Replies: 3
    Last Post: 11-23-2007, 08:58 PM
  4. Replies: 0
    Last Post: 10-04-2007, 10:33 PM
  5. method size is deprecated
    By oregon in forum New To Java
    Replies: 4
    Last Post: 08-05-2007, 06:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •