Adding Components to the Button Area: Using JOptionPane with a JButton containing a text label and an icon : JOptionPane Dialog « Swing « Java Tutorial
swing - Java: Custom Buttons in showInputDialog - Stack Overflow
SWING - JOptionPane Class
How to Make Dialogs (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)