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
# 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