I have an applet that crashes firefox (by crash I mean completely freezes up and I have to open the task manager and kill the process) most of the time when a dialog from JFileChooser is created. the applet is signed and it works fine in IE. Does anyone know of a workaround for this, or another class that I can use? Here's my java code:
public void selectLocalFiles(){
AccessController.doPrivileged(new PrivilegedAction<Object>(){
public Object run() {
JFileChooser jfc = new JFileChooser();
jfc.setMultiSelectionEnabled(true);
int returnval = jfc.showOpenDialog(null); //this is where it crashes
if(returnval == JFileChooser.APPROVE_OPTION){
<script>
function addAttachment(){
var selectedfile = new Array();
var startpos = 0;
document.getElementById("imagemgr").selectLocalFiles();
}
</script>
</body>
</html>
JavaWeb Browsers
Last Comment
csalem01
8/22/2022 - Mon
sciuriware
May be that's the reason that FireFox 3.0.1 is released.
FireFox: Help-> check for updates ......
;JOOP!
csalem01
ASKER
It actually crashes more often with the update. Seems to crash everytime now.
It only appears to crash if I call the selectLocalFiles() function from javascript. I added a button to the applet that calls that function and it works fine.
FireFox: Help-> check for updates ......
;JOOP!