This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hi I need help to give life for a button. Could you tell me how could I call the reset method in the interface class where I replaced the question marks. I tried everything but couldn't make that button work thanks.
interface.java
Board.java
<b>�Example isn't another way to teach, it is the only way to teach�</b> Albert Einstein
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
What have you tried there and what happened? If all the variables are in scope it should be as simple as shouldn't it?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Max Horstmann
Greenhorn
Joined: Sep 25, 2007
Posts: 3
posted
0
Thanks for the reply but that didn't work. Didn't I need a field first to call method in different class? Such as;
Board reset;
Board.reset(reset);
Something like this.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35250
7
posted
0
Can you pass the Board object to the interface constructor, so that you can save it for when the code needs it?