Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser text field  RSS feed

 
Larry Dixon
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to validate the textfield that is part of the JFileChooser and prevent the 'Save' button from closing the dialog if there is an error?
I want the user to select a directory, and am not adverse to them adding a string where I would have to create a directory, however, I don't want the user to enter text that is invalid as part of a filename. For example \\\ or *?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!