Can you post the code that compiles, executes and shows the problem


see: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)