 <blockquote> <p>yes, I tried with hex capable ones...but I m still getting an empty window.Is there any best editor u may suggest though?</p> </blockquote> <p>It sounds like the files may really be empty apart from that <code>\000</code> character; i.e. you've completely trashed them. You can confirm this by looking at the file sizes as reported by the operating system.</p> <p>If you have trashed the files, and it is unlikely that NetBeans can get the old contents back. You will need to restore latest versions the files from version control (SVN, GIT, whatever you are using) or from a file system backup. If that doesn't work you <em>might</em> be able to recover them with a file recovery tool, but I doubt it.</p> <hr> <p>The lessons is to make sure your source files are safely in version control or backed up before you use some code generator to update them.</p>