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

danpost's Comments

Back to danpost's profile

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();
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.
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.
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
@Nosson1459, actually there are no static images, although I could have made two of them static. The base images of both a non-selected (which a flag can be drawn on) and a selected cell (which a number can be drawn on) could have easily have been made static. And yes, everything was done with the use of graphics drawing commands.
I got a notification of yours before it showed up on the Activities page -- strange!
@Nosson1459, I copied the fore-mentioned jar file into my scenarios folder; opened the greenfoot application and proceeded to load the file.
@Nosson1459, I took a chance and opened the jar file in greenfoot (even though the '.CLASS' files, or source codes, were missing) and re-uploaded it.
@Nosson1459, this: www.greenfoot.org/applet_attachments/0000/9544/greenfoot1822994819051924242.jar is the path name of the ChessWorld scenario jar file here on the site. He was saying that you could use a decompiler (of which no particular one was mentioned) to recreate the source of the project.