title: How to place the TextArea text in its center?
body: <p>I have a Dialog and a <code>TextArea</code>. The <code>TextArea</code> component has an alignment set to <code>Component.CENTER</code>. I created a method named <code>affiche()</code> which displays the Dialog :</p>
  
  <pre><code>public class Alert extends Dialog {
      private TextArea chp;
      private Command[] comms;
      public Alert(String text, Command[] comms)
      {
          super();
          this.comms = comms;
          setAutoDispose(true);
          for (int c=0; c&lt;comms.length; c++)
              addCommand(comms[c]);
          chp = new TextArea(text);
          chp.setAlignment(Component.CENTER);
          chp.setEditable(false);
          chp.getSelectedStyle().setBorder(null);
          chp.getUnselectedStyle().setBorder(null);
          chp.getSelectedStyle().setBgColor(this.getStyle().getBgColor());
          chp.getUnselectedStyle().setBgColor(this.getStyle().getBgColor());
          chp.setRowsGap(3);
      }
      public Command affiche()
      {
          return show(null, chp, comms);
      }
  }
  </code></pre>
  
  <p>My problem is that the text is displayed at the top of the <code>TextArea</code> when calling the <code>affiche()</code> method from another Form.</p>
  
  <p>So how to display the text in the center of the <code>TextArea</code> ? I mean by "center" the center in the width and the center in the hight. I already set the horizontal alignement to center by the code <code>chp.setAlignment(Component.CENTER);</code> , so I want to know how to set the vertical alignement ?</p>