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

2014/5/11

Can't edit

dan11 dan11

2014/5/11

#
Hi, I just tried to edit the code in one of my actor subclasses, and it wouldn't let me open editor. Has anyone had this problem? Any suggestions?
danpost danpost

2014/5/11

#
First, try closing out the project and quitting greenfoot. Then re-open greenfoot and the project and try again. If that does not work, see if you can open the .java file with a text editor? It is located in your project folder. If so, save the text in a separate file; then see if greenfoot will allow you to remove the actor class. If successful, create a new class and copy/paste the code from the file back into the new class. Hope this helps.
dan11 dan11

2014/5/11

#
Thanks, turns out the .java files were gone, only the .class files were there. I ran the .class files through a decompiler and put the .java files back in. It works now, although I have no clue what happened to it in the first place.
You need to login to post a reply.