Re: focusLost vs. actionPerformed



Thomas Weidenfeller wrote:
Richard F.L.R.Snashall wrote:
In its present state, I do not force the focus back to the offending
component.
Or 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.

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?
.



Relevant Pages

  • includeonly
    ... For some reason, when I don't use the includeonly statement and ... Probably only the first error is relevant. ... The first error I find in your log file is this one: ... whatever part of your document generated the command following the line ...
    (comp.text.tex)
  • Re: precompiled headers
    ... > ton of errors mostly in gl.h and a couple in vector.cpp which say 'identifier ... Look for the first error that compiler gives to you. ... Look in Output window, it's better ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Blue Screen of Death
    ... I have recently been getting the BSOD appearing with no rhyme or reason ... I can discern. ... The first error line that shows up is ... fix this, but I haven't recently installed any programs and haven't ...
    (microsoft.public.windows.vista.general)
  • Blue Screen of Death
    ... I have recently been getting the BSOD appearing with no rhyme or reason ... I can discern. ... The first error line that shows up is ... fix this, but I haven't recently installed any programs and haven't ...
    (microsoft.public.windows.vista.general)