Man, that sucks! I don't have a solution for you, but I'm sorry for your loss, if it turns out to be a loss. Your post did some good though. I have a similarly-sized project that I've been working on for months, and your post caused me to do a backup of all source files.
Netbeans deleted the project folder and all source files? Without a warning and confirmation? That doesn't seem right.
I hope you find a simple, quick way to recover.
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Joined: Apr 20, 2011
it wasnt netbeans that deleted and corrupted the sources it was windows restore .....
for some reason i couldn't boot so i done a system restore and for some reason all the .java files and the project file were deleted.courrpted and wouldnt load back into beans.....
BACKUP BACKUP EVERYTIME YOU CHANGE SOMETHING.......
by a bizzare twist of good fortune i found an early version of my program on a usb stick i used to take to work...
so what i have done is create a new project with the same name as the program before......
then copyed over some parts of the early version of it
now i need to decrypt the .class files and copy out the code i need back to .java and add that to the new package....
You could try to run a recovery tool (Recuva is a free one) and see if it can still find the Java files. If the physical location on the disk hasn't been overwritten yet there is a chance you can still get the original data. If not you could also try more expensive recovery means, but you would have to decide if the costs are worth it.
I'll move this thread to General Computing since it's Windows that caused the problem, not NetBeans or anything Swing related.