Netbeans State Pattern with  user input