One can get the event queue with:
new JButton myButton = new JButton("HELLO");
EventQueue evtq = Toolkit.getDefaultToolkit().getSystemEventQueue();
evtq.postEvent( new FocusEvent(this,FocusEvent.FOCUS_GAINED) );
Here's my question: The FocusEvent takes a source (this) but never
specifies a destination. What I want to do is have the my myButton get
the focus but I want it to happen in such a way that what ever component
currently has the focus would get properly notified through a FOCUS_LOST
event.
My assumption is that through normal processing a FOCUS_LOST event is
generated by some event manager when another component gains focus.
Thanks.