Crea un diálogo de Swing preconstruído con botóns de Aceptar e Cancelar. Pode empregar este modelo para crear caixas e mensaxes e calquera outro diálogo. Tip: You can also create other templates for dialogs. (For example, you might want a template with Yes, No, and Cancel buttons.) First create the dialog and then right-click the the source file's node in the Projects window and choose Save As Template from the contextual menu.