title: How can I programmatically 'set' all parameters of a Dialog, such as 'dialog title', 'ok text', etc., without having string literals as parameters?
body: <p>This is more of a programming style-related question rather than a functionality-related question.</p>
  
  <p>All examples I see for creating a CodenameOne dialog box appear something like this:</p>
  
  <pre><code>.
  .
  import com.codename1.ui.Display;
  import com.codename1.ui.Form;
  import com.codename1.ui.Dialog;
  import com.codename1.ui.Button;
  .
  .
  // Create a button
  Button myButton = new Button("Click Me");
  
  // Create an action listener for the button
  myButton.addActionListener((e) -&gt; Dialog.show("Dialog title", "Dialog text", "OK", null));
  .
  .
  .      
  </code></pre>
  
  <p>The above <code>Dialog.show()</code> command has 4 parameters inside. However, if possible,  I wish to remove them, and 'set' them, as per the style below:</p>
  
  <pre><code>Dialog myDialog = new Dialog();       // Empty parameter list
  myDialog.setTitle("Dialog Title");    // 1st parameter
  myDialog.set???   // How can I 'set' "Dialog text" (2nd parameter) like I just did with Dialog Title?
  myDialog.set???   // How can I 'set' "OK" (3rd parameter) like I just did with Dialog Title?
  myDialog.set???   // How can I 'set' null (4th parameter) like I just did with Dialog Title?
  
  // ...and then just do something like ...
  
  myButton.addActionListener((e) -&gt; myDialog.show());   // empty parameter list
  </code></pre>
  
  <p>How can I 'set' the dialog text, the ok button text, etc. in the same manner that I could use <code>dialog.setTitle()</code>? Is there a corresponding setter for each of those other parameters?</p>
  
  <p>Any assistance would be greatly appreciated.</p>