[4747] in java-interest
Re: Re: How do I block exit of
daemon@ATHENA.MIT.EDU (Gil Tayar)
Fri Jan 12 08:49:23 1996
Date: 12 Jan 96 07:23:35 EST
From: Gil Tayar <GIL@mse.mhs.compuserve.com>
To: <java-interest@java.sun.com>
I sent this question to everyone:
>>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 got this reply from Gary Aitken (Thanks!)
>This probably isn't the best way to do this in a gui; the concept of
>constraining the focus to a single object is a carryover from character-
>based terminal stuff (in general; exceptions are things like password
entry)
>One shouldn't constrain the validation of a field until the user tells
>you it is complete, such as with a tab or clicking on an "apply" button.
>The user may well want to go copy some text from another object, and
needs
>to be able to get the focus out of the object.
To answer that, I'll say - you're probably correct in most cases, but for
reasons too complicated to delve into here, I *have* to do that. There's
no question about that.
In any case, for the user, a Tab is the same as a click in the control
the tab would have gone to! So, we're back to the drawing board.
And, you continued:
>That said, overriding handleEvent *should* do the job, but there has
been a
>bug in the awt which prevents this from working; I haven't checked beta2
to
>see if it's been fixed.
So - Does anybody know anything about the fix? I am using beta-2, so it
doesn't *seem* to be fixed.
Gil Tayar
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com