Its only been 4 minutes since I posted my answer.
There is no way you read and understood the tutorial in that time and then try to figure out how to apply the knowledge in NetBeans.
This is not a NetBeans forum. Learn the Java basics first. Once you understand the Java basics you should be able to figure out how to do it in NetBeans.