Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser issue - opens at the back of the browser  RSS feed

 
Np Knp
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have a strange issue using JFileChooser. I have implemented a WebApplication with a browse option to a folder(not files). For this JFileChooser has been used. Strangely when I click on "Browse" button, the controller calls the JAVA class, and the dialog opens behind the browser (only for the first time). and next time onwards it opens on the browser only. Here is the code i have written:


So please let me know where it is going wrong.

Thank you.
 
Rob Camick
Ranch Hand
Posts: 2752
11
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't check the "Disable BB Code in this message" check box below the input field if you plan on using code tags. I re-enabled it.
And Be forthright when cross posting to other sites.

This problem seems a lot like this problem. In short, JFileChooser is a client-side component whereas the web application runs on the server. You can't use JFileChooser in web applications unless you are going to use applets.
 
Np Knp
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob Prime for the suggestion.

I still have the issue open, even after using Applets.
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently you've missed your private messages. I suggest you check them.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!