Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating Events

Status
Not open for further replies.

Wiszh

Programmer
Aug 3, 2000
134
US
Hi all,

How can I fire an event on another control?
For example, get the windowlistener to fire the close button (without making a generic function that the action and window listeners call to do so)?

Thanks in advance
Wiszh
 
Depends on the type of control, but if your control inherits from AbstractButton (such as a radio button etc)you can invoke the doClick() method of that class and it is the same as if you triggered the event directly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top