If you are just learning JAVA do NOT use netbeans. I will just screw you up in the long run.
Download the Eclipse IDE for Java. It is much better.
Netbeans can be confusing and full of bugs. It is only good for GUI, which can be done in Eclipse.
For just learning java, the Java API is excellent, and thousands of java tutorials can be found using google.
API Link: http://java.sun.com/j2se/1.5.0/docs/api/
Just my 2 cents.