There are small mistakes like space missing, actionPerformed case issue, various public classes etc.
I have corrected the code and it is now, not giving any compile errors. But please use a IDE (Netbeans/Eclipse) so that these silly problems will not occur and you can focus more on the logic.