learning NetBeans through example