This is a java application that takes a screenshot of an entire screen. A console based application.
You can pretty much implement this code to netbeans maybe if you want to add it as a functionalitiy just make sure you map it to whatever, button or anything you might use it for correctly.