Swings-handlig events between different components

In java,how to trigger an event in one class from an event in another class ?
[84 byte] By [ksenthilnathanita] at [2007-11-26 19:10:14]
# 1
Specifically?
Chillidemona at 2007-7-9 21:06:01 > top of Java-index,Desktop,Core GUI APIs...
# 2

Assume that i have 2 classes JFrame1 and JFrame2,both have a button namly button1 in JFrame1 and button2 in JFrame2.

i have written an event for button1. Wat i want is,to write an event Handler for button2 that triggers the event of the button1 in JFrame1.

Is it possible?

It will be helpful if u help me in deriving the soln.

Thank you.

ksenthilnathanita at 2007-7-9 21:06:01 > top of Java-index,Desktop,Core GUI APIs...