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.