You have chained the constructor with the .add() call, so the end result is a return type of the add() function - which is void. Construct it first, then add the listener.
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
KirkPatrick 28 Junior Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
KirkPatrick 28 Junior Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
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.