Netbeans sample