The addActionListenerTo method now works through instanceof, instead of requiring the passing through of a string of the JComponent type.