Re: focusLost vs. actionPerformed
- From: Thomas Weidenfeller <nobody@xxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 09:30:43 +0200
Richard F.L.R.Snashall wrote:
In its present state, I do not force the focus back to the offending
component. I basicly ignore the bad input by putting the good value
back.
Arghhhh. I would go mad if an application does this to me. Actually, I would avoid the application in the future on the fear that there is more wrong with it than just a broken input window.
Imagine you are typing in a word like pneumonoultramicroscopicsilicovolcanoconiosis.
And you are not sure if it is actually ...coniosis or ...koniosis at the end. So you typed the word, and just want to do a quick check on the web if it is c or k in coniosis. And bang, right before you are done with entering the data the application deletes the input and replaces it with "good" values. THANK YOU VERY MUCH.
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 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
b) If it happens you your machine it is likely that it happens on many more machines.
/Thomas
--
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hierarchy/comp/comp.lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
.
- Follow-Ups:
- Re: focusLost vs. actionPerformed
- From: Richard F.L.R.Snashall
- Re: focusLost vs. actionPerformed
- 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
- focusLost vs. actionPerformed
- Prev by Date: Re: Layouts. Which to use, and when/
- Next by Date: Noddy layout question!
- Previous by thread: Re: focusLost vs. actionPerformed
- Next by thread: Re: focusLost vs. actionPerformed
- Index(es):