This is a completely different topic, and should really be in a new thread - you shouldn't just keep a handy thread open to post random questions in.
Anyway. The exception says you have a null pointer (uninitialised variable) on line 56 of BestFriendNames$addListener.actionPerformed. That line reads
names.add(name);
there are just two variables in that line, and name is initialised on the line above, Q.E.D. names is uninitialised. And a quick scan of the code confirms that. You declare names on line 24, but you never initialise it.