Hello All,
I am new to
applets and trying to solve this scenario. Any help is greatly appreciated.
I have a webpage where user needs to select a folder/directory instead of a file by browsing (same functionality when html browse button is clicked)
Get the folder path selected by the user and call a
java program which would move it to a different location.
My implementation plan:
Create an applet with 'Browse' button and when clicked use JFileChooser() method to select only folder/directory.
Transfer selected folder path to java program.
Questions:
How do I call JFileChooser functionality in my applet, what are the steps that need to be followed to achieve this functionality?
Once folder is selected, how to set it to a text field on the webpage so that user could see what was selected.
later when 'transfer' button is clicked, how to pass this selected folder path to my java code which does this move?
Any other alternatives to this is good with me.
Please ask your questions.
Regards,
Kriss.