This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Clock

Return to Clock

A new version of this scenario was uploaded on 2017-04-20 02:11:27 UTC Update for scenario image.
A new version of this scenario was uploaded on 2017-04-20 02:13:09 UTC Update for scenario image - back to normal.
YehudaYehuda

2017/4/20

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.
danpostdanpost

2017/4/21

You would think I would at least get a mention, even if you do not give me any credit on the fix: https://www.greenfoot.org/topics/58992/0#post_117028
YehudaYehuda

2017/4/21

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).
danpostdanpost

2017/4/21

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.
YehudaYehuda

2017/4/21

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).
danpostdanpost

2017/4/21

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.
YehudaYehuda

2017/4/21

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.)
danpostdanpost

2017/4/21

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();
YehudaYehuda

2017/4/23

@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.
YehudaYehuda

2017/4/23

Thanks anyway for the help.
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.
YehudaYehuda

2017/4/23

It's much better now.