[4569] in java-interest
How do I block exit of edits
daemon@ATHENA.MIT.EDU (Gil Tayar)
Sun Jan 7 07:42:26 1996
Date: 07 Jan 96 06:05:13 EST
From: Gil Tayar <GIL@mse.mhs.compuserve.com>
To: <JAVA-INTEREST@java.sun.com>
I have an Edit Control in focus, and I want to block an exit from it.
This means that any clicks or tabs or what nots to another control will
*not* change focus from it to the other control.
I tried subclassing TextField and catching lostFocus and mouseDown and
handleEvent and action.
Nothing. A click on another edit control will move the focus to that
control.
Why should I want that? To implement validation - like checking that a
certain edit control has values only between 1 and 100.
To anyone who answers - the most sincere of thanks,
Gil Tayar
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com