Swing - JOptionPane Pain

Is there a way for me to customize showInputDialog so that it shows a text field and a checkbox? Or do I have to create my own dialog? TIA,Jennifer
[168 byte] By [jmc95825a] at [2007-11-26 23:17:24]
# 1
you can still use a JOptionPane, just one of the other ones, where yousupply the textField/checkbox/whateverexample here (for passwords) http://forum.java.sun.com/thread.jspa?threadID=5151855
Michael_Dunna at 2007-7-10 14:18:43 > top of Java-index,Desktop,Core GUI APIs...
# 2
I was using JOptionPane's showInputDialog that allows an object but when I use that method I lose the text field. The thread you referred to does not give an example of a message box with a text field and a check field.Thanks,Jennifer
jmc95825a at 2007-7-10 14:18:43 > top of Java-index,Desktop,Core GUI APIs...
# 3

The thread you referred to does not give an example of a message box with a

text field and a check field.

Quite correct.

It shows how to add a JPasswordField to a JPanel and then add the JPanel to the optionPane.

I (mistakenly) assumed you knew how to add a textfield and a checkbox to a JPanel,

so it's probably better for you to start at the beginning

http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html

Michael_Dunna at 2007-7-10 14:18:43 > top of Java-index,Desktop,Core GUI APIs...
# 4
My apologies. I looked at your sample code more closely and now I understand what you were demonstrating. I have exactly what I wanted now.Thanks!
jmc95825a at 2007-7-10 14:18:43 > top of Java-index,Desktop,Core GUI APIs...