Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JNLP FileOpenService; using openFileDialog

Status
Not open for further replies.
May 13, 2002
75
GB
A query about the openFileDialog method, the second argument is
java.lang.String[] extensions
and the example given in the API refernce is
String[] { "txt", "java" }
but it does state "This might be ignored by the JNLP Client."

My question is why might it be ignored ? I have tried to run the method with some file extensions as it makes it a lot easier for the user but they are ignored and i don't know why. I though it may be a platform issue but i've only tried in on win 2k and NT but it doesn't seem to work on either. i tried:


FileContents fc = fos.openFileDialog(null, new String[]{"sdf", "txt"});

The file open dialog is displayed but only the default "All Files" extension is shown. Has anyone else worked out how to get round this ? Alistair [monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top