J
John Currier
Andrew said:Headless. No (not forgetting). I mentioned it on a variety
of other sub-threads you seem to have missed.
We are now talking about use of JOptionPane in other environments.
(And FWIW - I was never entirely clear, and no longer care,
if the OP's environment *is* 'headless')
I guess it's a misunderstanding of the basic definition of a
command-line (a.k.a console) program. There's a very good reason that
JOptionPane/JPasswordField was never mentioned as a possible solution
to Sun's original problem. The reason is that the original problem
deals with non-GUI environments. Here's a snippet from the original
bug:
"Not all applications of Java can assume that a GUI is available, so
AWT's setEchoChar stuff is not usable for this problem."
To quote you from yesterday:
I find that odd, since it seems to me that any console
application that supports user interaction can showInputDialog...
Is there something I am missing?
Yes, you're missing something. Your first sentence isn't a valid
assumption. *Many* console applications that support user interaction
can *not* showInputDialog.
John