Changed actionPerformed to handle new getName style.