What's the error message? Could you post it? Likely what's happening is that you didn't implement the ActionPerformed method correctly (or at all).