textValueChanged sometimes not called by TextField.setText

M

Mickey Segal

I thought that textValueChanged was always called when setText of a
TextField with a TextListener is used. However, in a huge applet I find
that textValueChanged is not called the first time TextField.setText is
called. However, subsequent calls to TextField.setText do fire
textValueChanged events.

This behavior is seen in the Microsoft JVM 3810, Sun 1.5 RC and Macintosh
Java 1.3, but textValueChanged is called as expected in Macintosh Java 1.4.

So far I have been unable to reproduce this problem in a small applet -
textValueChanged is always called as expected. In both the huge applet and
the test applet visible=true enabled=true valid=false.

Any advice on how to get textValueChanged called as expected? This is
causing problems because first and subsequent calls to TextField.setText are
having different effects because textValueChanged is not called the first
time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top