H
Hendrik Maryns
Hi,
I have a GUI which shows a button to select a file on the file system,
with a textfield next to it that then shows the path selected. I want
to ensure, however, that no garbage is input in the text field. The
easy way is of course to make the text field uneditable, such that the
user is forced to use the button and the JFileChooser popping up.
However, it would be nice (I’m a bit Linux-oriented), if one could type
in a file path as well, and this would be validated. Is there a custom
JFormattedTextField available for this? Preferably, it should work on
all platforms, of course.
Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFH8loAe+7xMGD3itQRAoQlAJ40D1SNEHFA6wWCGtFKl2SEl16AJwCfS7gS
moLmKH8HJbOi3Njgg0wMyxY=
=LYC7
-----END PGP SIGNATURE-----
I have a GUI which shows a button to select a file on the file system,
with a textfield next to it that then shows the path selected. I want
to ensure, however, that no garbage is input in the text field. The
easy way is of course to make the text field uneditable, such that the
user is forced to use the button and the JFileChooser popping up.
However, it would be nice (I’m a bit Linux-oriented), if one could type
in a file path as well, and this would be validated. Is there a custom
JFormattedTextField available for this? Preferably, it should work on
all platforms, of course.
Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFH8loAe+7xMGD3itQRAoQlAJ40D1SNEHFA6wWCGtFKl2SEl16AJwCfS7gS
moLmKH8HJbOi3Njgg0wMyxY=
=LYC7
-----END PGP SIGNATURE-----