textValueChanged never come
Dorothy Wu
dorothy21cn at 21cn.com
Thu Nov 15 00:24:38 PST 2001
hello!
Could u help me check the below code?
i run the below code by kaffe.
When I write in ta(TextArea), nothing print out( System.out.println(evt) ).
it seems textValueChanged event never come.
Can't kaffe(1.0.5-6) capture this event?
How should I modify it?
Thanks!
Dorothy Wu
/-------------------------------------------------------
import java.awt.*;
import java.awt.event.*;
class Main extends Frame implements TextListener {
Main() {
super("TextEvent Example");
TextArea ta = new TextArea();
ta.addTextListener(this);
add(BorderLayout.CENTER, ta);
pack();
show();
}
public void textValueChanged(TextEvent evt) {
System.out.println(evt);
}
public static void main(String args[]) {
new Main();
}
}
----------------------------------------------------------------------------
-/
More information about the kaffe
mailing list