Class TooManyListenersException in java

Class TooManyListenersException in java An exception of this type signals that an AWT component or Java…