This code was created by netbeans designer.