title: How to add text area on JOptionPane
body: <p>Currently I have a <code>JOptionPane</code>. On clicking a button I am executing following line.</p>
  
  <pre><code>JOptionPane.showInputDialog(this,"Enter your message","Messages",2);
  </code></pre>
  
  <p>It opens a popup with a text box. This text box accepts around 40/50 characters.
  In fact my requirement is to take long message (upto 300 characters) in this text box which is stopping this. So we want to come up with a text area on this input dialog? Is it possible how?
  Is there any better solution?
  Thanks in advance.</p>