Issue
I was making a java gui application through netbeans IDE. All was working fine but yesterday when I opened the form in Netbeans, it said that the form had been corrupted and it could only open that form in read-only mode.
When I opened that form in read-only mode, I found that the code was incomplete as severals lines of coding wasn't there at the end.
Could anybody tell me how to recover the form. The form is perfect in lookwise but the generated code is incomplete.
The code is too long to write it again.
The Netbeans told me to get help from http://wiki.netbeans.org/FormGuardedBlockError but I didn't find any helpful information there.
Solution
Have you tried select all on the readonly form, copy and paste to a new form? That might regenerate your lost code.
btw, this is exactly the kind of common scenario programmers hedge against when they write code. i have used half a dozen UI designers at least and they have ALL given me this problem. But since i use SVN all i had to do was delete the corruption and do and update... all my lost work came back.
Answered By - Paul Sasik
Answer Checked By - Mary Flores (JavaFixing Volunteer)