textValueChanged never come
David Jardine
info at worldofenglish.com
Thu Nov 15 06:51:37 PST 2001
Do you need
ta.requestFocus()
in there somewhere, perhaps?
I myself have problems getting, retaining or getting back
keyboard focus with Kaffee. Is this a known issue?
David
On Thu, Nov 15, 2001 at 04:24:38PM +0800, Dorothy Wu wrote:
>
> 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