Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jfilechooser dialog box is not displaying on client side

AbuFazalAug 17 2013

Hello Experts,

I am having a application server hosting client files.

I have used jfilechooser to enable the client to download their files.

However, when the client clicks on the download button, the dialog box is initializing on the application side hosting the files instead of the client desktop.

Following is the code snippet that I am using

public static Result downLoad1() throws Exception

        {

                System.out.println("Start");

                JFileChooser chooser=new JFileChooser();

                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

                 chooser.setAcceptAllFileFilterUsed(false);

                 chooser.showOpenDialog(null);

                 System.out.println("end");

                return ok("success");

        }

Please help

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 14 2013
Added on Aug 17 2013
0 comments
884 views