Lakshmanan
August 4th, 1999, 10:57 PM
Hi,
I wanted to post an action Event from a procedure asynchronously. I did
some thing like this
EventQueue eq= Toolkit.getDefaultToolkit().getSystemEventQueue();
eq.postEvent(new
ActionEvent(button,ActionEvent.ACTION_PERFORMED,null));
This piece of code works fine if the button is an AWT component. But doesn't
work if it is a Swing component (JButton in this case).
Can any one help me understand how to send to send events to swing
components asynchronously.
If a reply could also be copied to lakshmanan.r@in.bosch.com , I'd really
appreciate it.
With regards,
Lachu
lakshmanan.r@in.bosch.com
I wanted to post an action Event from a procedure asynchronously. I did
some thing like this
EventQueue eq= Toolkit.getDefaultToolkit().getSystemEventQueue();
eq.postEvent(new
ActionEvent(button,ActionEvent.ACTION_PERFORMED,null));
This piece of code works fine if the button is an AWT component. But doesn't
work if it is a Swing component (JButton in this case).
Can any one help me understand how to send to send events to swing
components asynchronously.
If a reply could also be copied to lakshmanan.r@in.bosch.com , I'd really
appreciate it.
With regards,
Lachu
lakshmanan.r@in.bosch.com