title: Can I set the size of the JOptionPane.showMessageDialog's window?
body: <p>I'm working on a simple app that stores some objects (persons) in an Array, I'm trying to use <code>JOptionPane.showMessageDialog</code> to list them (<code>obj.toString</code>) on the screen.</p>
  <p>The problem is that after about six objects, the panel gets taller than the screen and it has no sidebar or some way to drag it to change its size.</p>
  <p><a href="https://i.stack.imgur.com/TFDRw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TFDRw.jpg" alt="joptionpane" /></a></p>
  <p>Is there a way to implement one of those features or maybe set it to display the objects as a grid, columns or anything else that would fix it?</p>