Another option would be to create your own JOptionPane instances. This requires some more scripting know-how, but is more powerful:
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html
2 Likes