Netbeans example