Pessoal, sabem o porque do erro
abaixo?
Tf1.java [19:1] No method found
matching
action(Event,int)
return super.action(ev, key); ^ import java.awt.*;
public class Tf1 extends java.applet.Applet { TextField tf1; Button bt1; public boolean action (Event ev, Object ob) { ... }
public boolean keyDown (Event
ev, int key)
{ if (ev.target == tf1) // somente para teste System.out.println("Key em textfield: "+ key); return super.action(ev, key); } public void init() { add (new Label ("Senha: ")); tf1 = new TextField (8); add (tf1); bt1 = new Button ("Continue"); add (bt1); tf1.setEchoCharacter('*'); } } |