Swing components share FocusListener
I've been stumped by a FocusListener problem in Swing. I'm digging through someone else's code and basically, I have a scenario where one component somehow calls the FocusLost of another component (even though the second component never had focus to begin with).
Is there a programmatic way to call FocusLost of a component? Eg - can I just invoke a FocusLost any old time?
The interesting thing is that one component is a custom hybrid of a textfield with a calendar, let's call it a calendarField class (imagine a textfield which displays date, with a small button in it for selecting date).
Pressing this button invokes FocusLost of an unrelated component. (it's not in the calendarField class, because there are several calendarFields in the dialog, and not all have this anamoly.)
Any help / ideas appreciated!