Confirmation provides a description of all possible actions, and requests confirmation from the user before proceeding. This should be used to alert the user to a condition or situation that requirest a decision before proceeding, such as an impending action with potentially destructive or irreversible consequences. More details with examples . User defined dialogs All user defined dialogs should be created by class DialogDescriptor . Each wizard in NetBeans should follow UI Guidelines for Wizards in NetBeans .
Wizard descriptor is right way how to achieve that.