less than 1 minute read

Customize Notify Descriptor for Netbeans Platform Applications

Using the notify descriptor this is how you change the button labels in your notification dialogs.

String selectedValue = (String)DialogDisplayer.getDefault().notify(
  new NotifyDescriptor(
          "this is my message",
          "my dialog title ...", 
          NotifyDescriptor.YES_NO_OPTION, 
          NotifyDescriptor.QUESTION_MESSAGE, 
          new String[] {"all", "some"}, "all"));

For more infomation look into javadoc of NotifyDescriptor.