A
Alan
Hi All,
I want the JFileChooser dialog to be customized as follows.
The File Name text box in the JFileChooser should not accept
special characters, like :<>|*
I trapped the keyPressed event and consumed the event by saying
e.consume();
Even after doing that the character appears on the text box of
File Name.
When I click on save and check for the value the special
characters never appear since they are consumed.
But what I need is I don't want user to get the special characters
appear on the File Name text box when he/she types the same.
I want the JFileChooser dialog to be customized as follows.
The File Name text box in the JFileChooser should not accept
special characters, like :<>|*
I trapped the keyPressed event and consumed the event by saying
e.consume();
Even after doing that the character appears on the text box of
File Name.
When I click on save and check for the value the special
characters never appear since they are consumed.
But what I need is I don't want user to get the special characters
appear on the File Name text box when he/she types the same.