Campbell Ritchie wrote:Welcome to the Ranch
You need to add a listener to your buttons. . . .
Campbell Ritchie wrote:Welcome to the Ranch
You need to add a listener to your buttons. . . .
Paul Clapham wrote:As Campbell said, your code would be more readable if you did this: UseCodeTags. That's a link, please read it and when you post code, do that.
As for your question, you should read this other FAQ entry: ItDoesntWorkIsUseless. That's another link, please read it and when you have read it, try posting a better question.
Aneeqa Rustam wrote: I'm sorry, What I meant to say way, this is now my code, I know that an ActionListener should be put in there but when i did type it all in and at the top i put
it still was not compiling, I need to know why it isn't compiling and how I can fix this problem?
Aneeqa Rustam wrote:. I have done what you told me to but I don't now how to add the setVisible and the main method and I'm stuck, when i compile the code it comes up with " local variable b is accessed from within inner class; needs to be declared final" what does that mean?
There are three kinds of actuaries: those who can count, and those who can't.