This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
You can use JOptionPane for this as well. Just create a new JOptionPane and then treat it like you would treat the content pane of your custom window. When you're done, you can call createDialog() and it will create a JDialog out of your custom panel.