Forum: Java Feb 27th, 2008 |
| Replies: 10 Views: 2,974 u can still use the tokenizer class and the nextToken function if u like. Just read the values from nextToken into an array, then display the array from the back, by starting at array size and... |
Forum: Java Mar 21st, 2007 |
| Replies: 10 Views: 1,899 Thanks so much for all the help..
It's working now:) |
Forum: Java Mar 20th, 2007 |
| Replies: 10 Views: 1,899 My class implements ActionListener and then I have:
public void actionPerformed(ActionEvent event)
JButton button = (JButton)event.getSource();
I have tried Singleton. In C++ though.. |
Forum: Java Mar 20th, 2007 |
| Replies: 10 Views: 1,899 Now that I have one eventlistener, how do I know which button is pressed?
Is there something like an isClicked method? |
Forum: Java Mar 20th, 2007 |
| Replies: 10 Views: 1,899 I've put all my buttons into a 2D array and they use one listener. I'm gonna try the if statement and previous variable thing.
I'll only try Singleton if that doesn't work coz I personally find... |
Forum: Java Mar 20th, 2007 |
| Replies: 10 Views: 1,899 Hi
I'm coding a game of towers in java. I'm having trouble moving a stack from one button to another.
I have eventlisteners for buttons A and B. If Button A is clicked and then button B is... |