jeudi 23 juillet 2020

Java swing re-using listeners

I've noticed that I'm making a new listener for every component in my app. Is this good design or would it be better to reuse my listeners? If I reuse my listeners what's a good pattern I should use to check which component is calling the event without having to check it with a ton of if statements

Aucun commentaire:

Enregistrer un commentaire