[3642] in java-interest
HTML INPUT field and Applet
daemon@ATHENA.MIT.EDU (Suresh Payankannur)
Tue Nov 21 00:11:45 1995
From: Suresh Payankannur <suresh@acgeas.com>
To: java-interest@java.sun.com (Java Interest)
Date: Mon, 20 Nov 1995 19:30:32 -0800 (PST)
Hi Folks,
Hope things are going good with everybody. I ran into another problem
recently.
I have an input field in a HTML form and would like to attach a smart
applet to it to do some kind of formatting. Say it it is amount formatter,
the user is allowed to enter only nuemerical chars and if the user
enters, say, 10000, the formatter automatically displays 10,000.
I can capture the key/mouse events by overloading the appropriate
methods, and can get the x, y position. Then I need to find out the field using
this postional information. This will be annoying when one adds a new field
in between the exising ones, resizing, use different font types etc. On the
other hand, when I overload the focus related methods, I get an Object,
which is obviously a Java object, and for which (I think) I have to write
the entire UI using Java components.
Is it possible to pass the INPUT field name/some-other-tag to the Event ?
Or is there is anyother way I can solve this problem ?
thanks,
suresh
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com