List files from server in Applets JTable
Posted on 2006-05-31
Help on how to do the following would be very much appreciated. Thanks in advance!…
1. I have a java *applet*, which contains a JTable. I would like this JTable to display a list of files from the server that is hosting the java applet (Files from a single particular directory). I just want to know if you can get a list of *server* files from an applet, I don't really need the code to create the JTable, display these, etc.
2. When a user selects one of the files from the above-mentioned JTable, I would like a 'download' button. Can anyone provide code that lets you download a file from an applet to the users PC? (Preferably without having to ask the user where they want this saved each time).