In my database application, I have a maintenance jPanel with a 12 controls, textFields and comboBoxes, that need to notify when focus is lost after the user changes the text or box selection. Is there a way to group the controls for this or do I need to add the focusLost event for each separately? The focusLost event will set a Boolean variable that will be used to check for updating the result set. I'm using Netbeans.
BTW, Happy Thanksgiving to everyone! Yeah, I'm coding some today, waiting for the turkey to be ready, and football of course.
You would need to set it for each component individually, but if you put them all into an ArrayList or array, this could be trivially done in a for-each loop.