• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with file chooser

 
Trushant Patil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
I am using a jfilechooser for saving a file..i have 3 file filters..the problem occurs when i use a wild characters in the file name ( * / ? < | > : \\ " )....i display a error when the filename contains any of the wild characters.....but in case the name contains '*' or '?' the name entered in the fileName field gets added to the file type(filefilters combobox) instead of displaying error ....How can i avoid this. ie stop searching when characters entered contain '*' or '?'
 
Craig Wood
Ranch Hand
Posts: 1535
 
Trushant Patil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Craig.... the link was quite helpful
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic