Re: focusLost vs. actionPerformed
- From: "Richard F.L.R.Snashall" <rflrs@xxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 05:53:45 -0400
Thomas Weidenfeller wrote:
Richard F.L.R.Snashall wrote:In its present state, I do not force the focus back to the offendingOr even worse. Imagine you are, for whatever reason, distracted during input and accidentally move the mouse outside of the window. Or someone bumps against your table and the mouse gets accidentally moved.
component.
That could happen whatever the state of the input. Since the input
here is numeric, the odds are that what was already typed in is valid.
Tell the kitty to get off the table;-)
That still leaves the original question. Is it a property of my
machine that the loss of focus is acted upon before the other
actionPerformed process has completed, or would that happen on all
platforms?
It does not matter.
a) Your handling of the data is anyhow faulty
Actually, it is based upon existing tools, where losing focus caused
whatever data was in the field to be accepted. What I objected to in
those tools was not that it accepted the input, but that it would
accept up to the first error and quietly ignore typing errors.
b) If it happens you your machine it is likely that it happens on many more machines.
Is it a property of the Java environment or of the individual platform?
.
- References:
- focusLost vs. actionPerformed
- From: Richard F.L.R.Snashall
- Re: focusLost vs. actionPerformed
- From: Fred Kleinschmidt
- Re: focusLost vs. actionPerformed
- From: Richard F.L.R.Snashall
- Re: focusLost vs. actionPerformed
- From: Thomas Weidenfeller
- focusLost vs. actionPerformed
- Prev by Date: Noddy layout question!
- Next by Date: Re: focusLost vs. actionPerformed
- Previous by thread: Re: focusLost vs. actionPerformed
- Next by thread: Re: focusLost vs. actionPerformed
- Index(es):
Relevant Pages
|