Removed unused import and moved actionPerformed method up