This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello I have signed my applet so it can write a file on the user's disk. This is working when the path is hardcoded. But I would like to let the user choose where to save the file. So I use the JFileChooser like this:
This always makes the browser to crash. The dialog box appears but any interaction with it (click, move...) makes the browser to crash. I have to kill the process. What's wrong with JFileChooser in applets ?
Hi Christophe, I don't think you should be having any problem. You didn't specify which Browser and version you were using. I have tried similar code on IE version 6 and have no problems. I have included the java code below and the HTML file inside it as a comment.
Joined: Nov 05, 2001
When I click on the link "testWriteFile" the JFileChooser appears and then browser "not responding" in TaskManager. [This message has been edited by Christophe Monnet (edited November 27, 2001).]