Looks like you have to add the Swing Layout Extensions Library to your project, to do so go to the Projects explorer, do right-click on Libraries > Add Library... and select Swing Layout Extensions Library. Problem solved.
BTW this is a Duplicate from https://stackoverflow.com/questions/19304700/netbeans-jframes-do-not-work