Just realized creating the class was stupid cause it interrupts the action listener. took it out so the code starts at the
int redscore~~~~~
Type: Posts; User: Mac
Just realized creating the class was stupid cause it interrupts the action listener. took it out so the code starts at the
int redscore~~~~~
Thanks for all your help thus far, Faz. I fixed up my button names to buttonRed like you suggested, changed it to objButton and jazz.
Looking back through old work I found a code I'd written (and...
Here's what I'm looking at. I think I've definitely made progress.
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;...
If you have AIM/Live, hit me up?
Would make it easier than hitting refresh and jazz.
Macabrepoet92 for AIM or @hotmail for live
Imagine one of those online quizzes you take with the circle-shaped check boxes.
Now imagine each question is Red or Blue. First circle is red, second is blue.
It would look like:
who won? ...
//In initialization code:
chinButton = new JCheckBox("Chin");
chinButton.setMnemonic(KeyEvent.VK_C);
chinButton.setSelected(true);
glassesButton = new JCheckBox("Glasses");
...
What I meant by if/else loop was that instead of writing code for every button click- if blue, tally 1 else red tally 1
just have it loop the method?
If that makes sense. I'm not too hot on...
Thank you for the welcome. I will read the thread you recommended.
True enough, I was given the assignment by my instructor~ but not in the way that you think.
I was told to make a practical...
I'm trying to write a simple, click event based program and I need some help. I lack the experience to handle this on my own.
Here's what I have so far~ (I'm not worried about perfection~ the...