hello all

I just learned about addActionListener
there are many example about TextField.addActionListener for one TextField only
,but if there are more than one TextField,and all of them have been given Action Listener
,how to differentciate ,from which TextField the Event is come from ?
Where can I find example about this


thank you
denny

,how to differentiate ,from which TextField the Event is come from

Look at the contents of the ActionEvent object that is passed to the listener. It has a reference to the object that is sending the event to the listener.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.