i want to make a button a listener to the action from a source which is another button. for example if i have two buttons, yellow button and blue button and i want to make the blue button a listener to the yellow button... if the yellow button is clicked the label of the blue button should change.
I'm not sure I know exactly what you are talking about either. Why would you want your button handle the events? Its a button not an event handler. If you are using Swing you might want to look into the Action class. [ April 10, 2002: Message edited by: Ibrahim Hashimi ] [ April 10, 2002: Message edited by: Ibrahim Hashimi ]
No the button cannot act as an event handler. button is a component, it generates an event and a listener handel this event. please look at Events and Listeners. [ April 10, 2002: Message edited by: Muhammad Ali Ashraf ]