Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2008, 10:34 AM
Member
 
Join Date: Feb 2008
Posts: 3
Rep Power: 0
mikau is on a distinguished road
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

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);
}
}
}

Last edited by mikau; 02-13-2008 at 11:22 AM.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an External Program through Java program Java Tip java.io 0 04-04-2008 03:40 PM
getYear deprecated method ravian New To Java 1 01-28-2008 11:35 AM
Using Deprecated Methods ravian New To Java 3 11-23-2007 08:58 PM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 10:33 PM
method size is deprecated oregon New To Java 4 08-05-2007 06:59 PM


All times are GMT +2. The time now is 10:57 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org