To be honest the best way you learn these things is trying them out. If your stuck this forum should probably be your last port of call. I would generally recommend you trying doing some of your own...
Type: Posts; User: Faz
To be honest the best way you learn these things is trying them out. If your stuck this forum should probably be your last port of call. I would generally recommend you trying doing some of your own...
OK first of all you are saying Button1.addActionListener, what is Button1? (I know what you mean but Java won't it's objButton1) also I would recommend giving them more meaningfull names like...
Sorry no I'm in work running some large queries on a database and just nipping on here while they are running(servers were just moved from Belgium to Frankfurt so plenty of gremlins slowing the whole...
OK I see what you mean by the if else thing now, you could check the text and add to the tally based on that and that way the 2 buttons could share an action listener.
I can't say I understand...
OK fair enough you say you haven't written code that requires knowledge of buttons, do you have any knowledge of action listeners? You shouldn't need any If/else or loops(No such thing as an if/else...
Firstly welcome to the forums.
Secondly I would recommend you read this thread Java Programming Forums - Announcements in Forum : What's Wrong With My Code?.
Now onto your post I am guessing...