Netbeans isn't automatically identing (Java)

I have a university project where I must code a Java App. Since we learned java using Netbeans as an IDE, I decided to code the app using this IDE.

I had never experienced this bug on my previous computer. Right now, when I open "{ }" after writing a function or any other block, the line after when pressing "return" isn't indented, and pressing "tab" doesn't do anything.

public class App {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
System.out.println("");
code
impossible
to
indent...

    }
    
}

Maybe, someone know what the problem is ?

thanks :D


Seems there is a bug in NetBeans.

See this link for more details https://issues.apache.org/jira/browse/NETBEANS-6281