first you have to extract the war file and then convert the class file into java file using jad decompiler . Class file will be in src folder. For extracting you can use 7zip
You can open the war file in netbeans by file->new project->web application and choosing java web application with exisiting resource.select the extracted war folder.you have to paste the java file on the respective package