There is a bug with the timer it doesn't fully reset when "Cancel" is pressed. I'm in middle of fixing it.
Please report bugs, comments, questions, or complaints.
A new version of this scenario was uploaded on 2017-04-21 02:56:34 UTC
I (think I) fixed the Timer issue. I also (think I) fixed some Look and Feel issues.
What's the difference between mentioning that you told me to try that and giving you credit for the fix? Giving you credit is mentioning that you gave me the fix. (I did thank you for it.)
I still have a question in the discussion which you didn't answer (you only answered Wasupmacuz's question).
QUOTE = Yehuda
"I still have a question in the discussion which you didn't answer"
----------------------------------
The answer is essentially given in my response to Wasupmacus's question. The GUI control frame (where the Reset and Run buttons are located) limits the width of the applet.
So what do I have to do to make only one set of Components appear (making the frame bigger just makes more sets visible, making it smaller makes my one set not fully visible).
I think you just need to repaint the background of the world:
getBackground().fill();
as one the first few lines after the 'super' call in the constructor.
How can that work, we're not dealing with drawing colors onto the frame/panel these are Components, if you try clicking on one of them it will work like it should.
(It didn't work.)
Okay. Found the solution. After the 'super' call, you get the world canvas; immediately after that you need to place the following line:
worldPanel.removeAll();
@danpost Seriously! That's what I did, now I come here and see that's what you tell me to do (now is the first time I'm on the website ever since my last comment).
I figured that every time I press reset I still have the same JPanel so I just keep on adding more things to the same one - until I exit Greenfoot.
A new version of this scenario was uploaded on 2017-04-23 22:40:56 UTC
Fixed and changed some things.
For danpost: In case I missed any mentions or thanks then here it is.
2017/4/20
2017/4/21
2017/4/21
2017/4/21
2017/4/21
2017/4/21
2017/4/21
2017/4/21
2017/4/23
2017/4/23
2017/4/23