JFileChooser hangs when clicking OK or CANCEL

I have created an applet to run primarily in Netscape 6 with JRE 1.3.1. I have also adjusted the policy file to give my applet all permissions on the local system. In my Applet I want the user to select a file from the local hard drive. To achieve this I am using the JFileChooserClass however after I select a file from the FileChooser and click OK the dialog does not disappear and Netscape hangs.
Has anyone else seen this behaviour? Is there a way to workaround it?
I have included my code just in case I am doing something wrong.
import java.awt.*;
import javax.swing.*;
import javax.swing.filechooser.*;
System.setSecurityManager(null);
int returnVal = 0;
String fileName = "";
//Create a file chooser
final JFileChooser fc = new JFileChooser();
returnVal = fc.showOpenDialog(this.getParent());
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
fileName = file.getAbsolutePath();
Thanks,
Anthony

Hi,
I am having a similar problem. We have a signed applet that presents a JFileChooser and the user selects a file to open. The JFileChooser hangs IE. The applet worked fine on JRE1.3.0.2. The problem arose when we upgraded to JRE1.3.1. Down grading to 1.3.0.2 is not an option for us. Does anyone have a workaround ?
regards,
Joag

Similar Messages

  • Web Intelligence Hangs When a Report is Cancelled

    Web Intelligence hangs when a report is cancelled.  Has anyone else had this problem and how have you fixed it?  I have googled it and can find fixes for it on previous versions but can't find it on our current version.  We are on SAP BusinessObjects BI Platform 4.1 Support Pack 2 Version: 14.1.2.1121.

    Hi,
    I still recommend Patch2.x   , also the BICS correction is must-have in long term.
    You need to save the BEx query in Designer with property "Allow external acess to Query"
    Viewer preferences are set in BILaunchPad settings , not CMC
    Java version can have impact - but anything in 1.6.0_x range is fine with IE 7 / 8
    You also need to make sure your APS server (that contains the DSLBridge service) is running.
    You also need to make sure that your user credentials in the BICS logon string have sufficient SAP Authorizations added to your Role, to be able to read the InfoArea nodes as seen in RSA1 in BW.
    You also need to have a compatible BW version: 7.01 (EhP1) SP07 and above. (08 / 09 recommended)
    Regards,
    H

  • Safary hangs, when clicking on the link to *.dmg or *.zip file

    Hello!
    Safary hangs, when clicking on the link to *.dmg or *.zip file. If I choose "save to downloads" from drop-down menu, everything is ok, but it's not always possible to choose that on the link. For example, if I try to download and install Safary from apple web page -safary perfectly hangs.
    Sometimes I have to use other windows notebook in order to get some file from net. Its unbeliveble

    HI,
    Try maintenance..
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go to ~/Library/Safari and move the "Downloads.plist" file to the Trash.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem.
    http://support.apple.com/kb/TS1594
    Make sure Safari is running in 32-bit mode. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) make sure Safari is NOT running in Rosetta.
    If you need to reinstall Safari, reinstall from your Mac install disc. Insert the Mac install disk. Open the Optional Installs folder, then open Optional Installs.mpkg An Installer will start... click Continue. When you get to the Installation Type in the window on the right you will see: Applications. Click the Disclosure triangle so it faces down. Select Safari and click continue.
    Make sure you have enough free disk space on your Mac. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 10% to 15% free disk space at all times.
    If nothing above helps, please post a crash log.
    How to locate a crash log:
    1. Open Finder.
    2. Click "Go" in the menu, then select "Go to Folder".
    3. Copy and paste this path into the Finder dialog:
~/Library/Logs/CrashReporter/
    4. Click the Go button.
    5. Finder opens the folder containing the crash log. Look for a the crash file with a date field that looks *like the most recent.*
    Carolyn

  • Firefox crashes/hangs when clicking on bookmark toolbar links

    Hello. I have had an issue for the last 6-8 months at least, where during daily use, Firefox will crash or frequently hang when clicking on a frequently used bookmark on the bookmarks toolbar. One such bookmark opens a pop up window to enter data and uses javascript, but it also happens with other bookmarks. The error prompt firefox shows is "Plugin Container for Firefox has stopped working" and sometimes, not always, give me a chance to make/send a crash report, which I have done several times. I then have to restart the browser. The crashes don't happen every time I click on a bookmark, but at least a few times a day. Sometimes, the browser will instead hang for 3-10 seconds and will not crash.
    I have gone through all the normal troubleshooting suggestions. Not long ago, in an attempt to find a solution, I made a new Firefox profile and enabled as few extensions and plugins as possible. The crashes still happened. I have more extensions and plugins installed now, but still as few as possible. The computer is virus and spyware free.
    bp-0dc26c5e-260e-415e-982e-313832150311 3/11/2015 7:28 PM
    Any help would be appreciated. Attaching a recent crash report, I have more available.

    I ran Firefox all yesterday with hardware acceleration off. It didn't crash but began to hang for a few seconds a few times when I clicked on a toolbar link. Today I experienced more hangs, and it did finally just crash like usual.
    Not sure if it helps but I'll include the new crash report.
    bp-a5b17280-c287-44ac-b4c9-ee84d2150319 3/19/2015 7:45 PM

  • Firefox hangs when click link, even to this window, or slow loading a link. WinXP

    Firefox often hangs when click link, even to this window. Sometimes closing and opening fireforx fixes it. Very, slow loading some links after a search. Seems to hang when all the google spysites are being contacted.. WinXP

    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Dropdown parameter of ssrs report in sharepoint webpart got hang when clicked.

    I am creating a web part which will have a SQL server report integrated into it. i have 6 parameter in the parameter box. one of the
    parameter have drop down in it. when i click on the drop down for the first time it works fine and give me all the values for selection. when i click on the drop down and then click else where on screen drop down got hanged. now, if i click on the drop down
    "Loading" icon of report used to get displayed and drop down does not open so i can't choose value. Its working fine in google chrome. Issue is with Internet Explorer. Please provide valuable suggestion for it.

    Check on IE , are you getting any JavaScript errors?
    Ahmed Said Moussa SharePoint Consultant

  • JFileChooser hang when brosing root directory of Truecrypt Encrypted drive

    Hi,
    I have been consistently having a problem with netbeans where if I try to browse to the root directory of my encrypted drive, it hangs for a long time (say 5 - 10 minutes). It then eventually comes back with the correct file choose dialog.
    At first I thought this was just a Netbeans issues. However, I was also developing a Java Swing app (in eclipse) that uses a JFileChooser dialog. If I browse a standard drive I have no problems. If I then go to browse my encrypted file, I get this hang. When I compared the netbeans scenario with this, the only thing in common is that I was trying to browse my encrypted drive.
    This only seems to happen when I want to browser to the root directory of this drive. If I am able to get the dialog to open (on a normal drive) and I directly enter a sub directory of the encrypted drive into the file name field, I can browse there without the hang.
    So just wondering if anyone else has had this problem. I know it isolated to swing JFIleChooser, to at least swing on Windows XP as I don't get this problem through the native file chooser, or through the native file chooser via SWT.
    My drive was encrypted using Truecrypt.
    Truecrypt details
    Size: 41943039488 bytes
    Type: Normal
    Encryption Agorithm: AES
    Key Size: 256 bits
    Block Size: 128 bits
    Mode of Operation: LRW
    Can anyone give me some idea of what might be happening here?
    Regards
    Steve

    I don't know if this is what you are looking for.
    If you need the real roots, you can use this
    File[] file = File.listRoots();
    It should return the available filesystem roots.

  • Mail hangs when click on message in draft folder

    Mail is working ok. However I have a message sitting in my draft folder that when I click on it, it causes Mail to hang completely. I would love to delete it from the folder but I can't even get near it without hanging.
    Any clues on how to get rid of this troublesome message and problem?

    please ignore this question as I have fixed it.
    sorry guys

  • Firefox hangs when clicking "Options" on any add-on in the add-on manager.

    After the latest update the add-on manager window hangs whenever i click on the options for any add-on. The main firefox window works fine, but i am unable to to go into the options for my add-ons. Moreover, my search engines keep rearranging and disappearing. I dont know if that's relevant, but I thought I should add it too.

    I installed 4 different extensions ... when I click on addon manager and click any extension "options" the whole addon manger freezes up for me as well. I can't close or escape the window. I can open another browser window but the old window with the addon manager is frozen so I must use task manager to close.
    After trying many options this worked for me ... I uninstalled Adobe Flash plugin and reinstalled Shockwave Flash 11.0.1.152 ... I do not know why or how but it fixed the problem Now everything is working HURRAY!

  • Since Firefox 32.0 was downloaded on 3/9/14 I am experiencing brief hanging when clicking onto websites or links. Is this a problem with the new version of Fire

    If I click onto any link or webpage I am quite often getting a briefing 'hanging' before Mozilla responds. I also get a message at the top of my screen stating that Firefox is not responding and the loading symbol justs spins in circles until it eventually frees up and opens the page. Prior to Firefox 32.0 being downloaded on 3/9/14 I had no problems with this 'hanging' at all. I can only assume it is a Firefox issue as I do not have the same issues if I use Internet Explorer or any other programs installed on my computer.

    You can check for problems with the history that is stored in the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    There are other things that need your attention.
    Note that your System Details List shows multiple Flash plugins.
    *Shockwave Flash 15.0 r0
    *Shockwave Flash 14.0 r0
    *Shockwave Flash 13.0 r0
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • Firefox crashes when I reopen it's window after having been on another window. It also hangs when click in it's window. Please help.

    The crash report window didn't give me a signature but here's the crash report id:
    7bdfbc7f-199f-4589-b558-271f52110531
    I'm using Malwarebytes and it's removed all malware. I've been running it everyday ever since this problem started. I'm also using Kaspersky Internet Security 2011.
    The problem started when I temporarily deactivated Kaspersky and ran the browser. When I reactivated Kaspersky the problem persisted. Malwarebytes picked up some malware after that and removed them. But still have problem. Please yelp.

    Some of your crash reports weren’t sent to the Mozilla Servers.
    In the address bar, type '''about:crashes'''<enter>.''' Note:''' If any reports do not
    have '''BP''' in front of the numbers, click it and select '''Submit'''.
    Using your mouse, '''mark''' the most '''resent 7 - 10''' crash reports, and
    '''copy''' them. Now go to the reply box below and '''paste''' them in.
    If you have problems with current Shockwave Flash plugin versions then check this:
    * see if there are updates for your graphics drive drivers
    '''https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration'''
    * disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    '''https://forums.adobe.com/message/4468493#TemporaryWorkaround'''
    * disable hardware acceleration in the Flash plugin
    '''https://forums.adobe.com/thread/891337'''
    See also:
    * '''http://kb.mozillazine.org/Flash#Troubleshooting'''

  • Outlook 2007 hangs when clicking the To button in a new email

    Hello,
    I have a person whose Outlook 2007 hangs whenever they create a new email and click the To button to bring up the GAL.  By hangs, I mean it becomes unresponsive and you have to End Task the new email, which causes Outlook itself to crash.  I've tried the following:
    Repairing Office
    Uninstalling/Reinstalling Office
    Creating a new profile
    The only thing that fixes it is running Outlook.exe /safe, but that's not an acceptable long term solution.  I have tried disabling all add-ons and running Outlook normally, but it still hangs.
    If anyone has any ideas or can help in any way, I would really appreciate it.

    Step 1: Disable the addins in Outlook 2007:
    On the Tools menu, click Trust Center, and then click Add-ins.
    In the Add-ins box, identify the add-in that you want to enable or disable and note the Add-in type located in the Type column.
    Select the Add-in type in the Manage box and then click Go.
    Select or clear the check box for the Add-in that you want enable or disable and then click OK.
    Step 2: If you have bigger PST/OST files then it may take a while to load - during the time, it may become unresponsive. Just for testing, remove the PST file and reopen the
    Step 3: Also you can try opening the Outlook in Online mode (if you currently use Outlook in Cached mode)
    Step 4: Make sure Outlook 2007 is updated with Service Pack 2 - its known for performance improvements. FYI: you can refer the following blogpost: http://blogs.msdn.com/deva/archive/2009/04/28/download-microsoft-office-suite-service-pack-2.aspx
    Step 5: You can control the running add-ins - which needs to run: By default, Outlook allows any installed add-in to run. You can restrict Outlook to run only those add-ins that are digitally signed by applying the Warnings for signed macros; all unsigned macros are disabled setting to add-ins, as follows:
    On the Tools menu, click Trust Center.
    In the left pane, click Macro Security.
    Click Warnings for signed macros; all unsigned macros are disabled.
    In the left pane, click Add-ins.
    Select the Apply macro security settings to installed add-ins check box.
    You can try the above steps and let me know whether this resolves the issue or not?
    DeVa, M.S., {MSFT}

  • Cancelled contract lines are populating in the SR form's subject tab when clicking on 'Get Contracts' button

    Cancelled contract lines are populating in the SR form's subject tab when clicking on 'Get Contracts' button. But user says, it should not be populated. What could be the reason? Please suggest.
    I have told the user :
    "In the case of a renewed contract, if the service request is logged during the effectivity of the original contract (which is now Expired), the original contract will be retrieved. If the service request is logged during the effectivity of the renewal contract then only the renewal contract will be retrieved.
      Contract Entitlement on Subject tab is based on Contract Start and End dates. All the contracts i.e. expired, active, cancelled will appear until the end date. As we can see the contract ES-10165 is end dated on 09-DEC-2014, hence it will appear on the subject tab as per the functionality."
    But the User is saying:
    "Contract coverage is clear to be based on dates, and that is quite clear to me as well… the problem comes with the different statuses.
    A SR can be associated to an “EXPIRED” contract line because the SR creation date could be falling between coverage line start and end dates, but can never be related to a “CANCELLED” line.
    This “CANCELLED” status means that the line is not valid for the contract, so if it is not valid for a contract, it is not valid for referencing a job…and this is only creating wrong costs associations."

    Hi Sudhakar,
    Drop inline message components for each of the textFields and the textArea and then run the application. You could also use a message list component but inline message components for each of the input components would give you a clear idea if any errors are occuring. In case any such errors are indeed occuring then the situation can be analysed further.
    Hope this helps
    Cheers
    Giri :-)

  • Webutil: webutil_file.file_open_dialog seems to hang when cancel is pressed

    Hi,
    I just used webutil_file.file_open_dialog to select files. I noticed when I press the cancel button, webforms hangs. I have to close my webforms session with the taskmanager, while the cpu has gone to 99%
    I encounter the same problem when using webutil_file.file_selection_dialog.
    Am I doing something wrong or is this a bug?

    what was the code problem that you resolved - I am running into the exact same problem when using the webutil_file.file_open_dialog and I hit cancel it all hangs.

  • In File Dialog, when click Cancel button, it prompts error and VI exits

    Does anyone can give me an idea on how to solve this problem? When the user click on the Cancel button in the File Dialog box, it prompts out error and says "Operation canceled by user". How can I handle this error?
    I got the same error when I click on the Cancel button when the system prompts me for replacing an existing file. Btw, how can I stop the system from prompting me to replace an existing file? Thankssss.....

    Hi,
    A similiar topic was discussed here
    http://forums.ni.com/ni/board/message?board.id=170&message.id=151316#M151316
    Hope it helps

Maybe you are looking for