JFileChooser hanging problem

I am developing an application in which I use JFileChooser. It was working for a while and then (after a recent new application instal) it started to hang every time it attempted to execute the line
JFileChooser fc = new JFileChooser();
I tried creating a trivial new application, tried stepping into the library code and tried re-installing NetBeans 4.1 - all with no success.
Can you suggest what else I might try?

Thanks for the suggestion. I had not tried printing before and after so I tried it as follows:
I put the following lines:
System.out.println("starting new call");
JFileChooser fc = new JFileChooser();
System.out.println("ended new call");
iand I got the following when I ran it:
nit:
deps-jar:
compile:
run:
starting new call
I then had to interrupt the process because it hung and I got:
Java Result: 1073807364
I had already tried it with the debugger and stepped into the code invoked by the call to new JFileChooser(). It eventually reached the Toolkit function getDefaultToolkit and never successfully returned from there. It repeatedly executed the test
if (toolkit == null)
as false and went straight to the final line
return toolkit;
Stepping on or trying to step out of that function simply returned execution to the function's opening line:
if (toolkit == null)
This appears to loop.
I had a problem with Star Office not long before this problem surfaced. It reported that it had failed to save a file as I closed the application. Since it is Java based (and I am ignorant of whether there could be interference) I wonder whether that could have resulted in an overwrite of something in NetBeans. That was why I tried a re-instal - but with no beneficial effect.

Similar Messages

  • 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

  • Hanging problem

    My Nokia asha 200 is hanging very frequently and gets switched off automatically and does not switch on by pressing the power button.Every times it happens I have to remove the battery & then the phone starts and after 5-10 min it again hangs.
    Also I went to Nokia care 4 times where they just updated the software but after this the hanging problem still continues and It's really frustrating me. I have tried all solutions such as hard and soft reset but the problem continues.
    I am really fed up with this problem so please provide me a good solution as soon as possible. Software version-11.95 Product code of my phone is-059K959

    To prevent freezing or lagging/slow response on any BlackBerry, the most important practice you can adopt is to be sure to CLOSE applications when you are finished using them.
    If you just hit the red "end call" key to go back to the home screen the application actually stays open and running in the background. If you do this repeatedly you will have lots of apps open and consequently your memory will get used up. Lack of memory is the biggest reason your BlackBerry slows to a crawl or locks up. If you get into the habit of actually using the menu key to close the applications this will at least slow down this memory-clogging process. You still may have to do a battery pull or use the "Quickpull" app once in a while when things get slow.
    To check what applications are running on your device in the background, press the Menu key then choose Switch Applications. You will see the icons of each application there.
    So now, check your applications running in the background. There are commonly four or five applications that will always be running (Messages, Call Logs/Phone, BlackBerry Messenger, Homescreen, and the Browser; there are other third party applications such as BeeJive, and BlackBerry Alerts which will also run in the background which you cannot close if you want them to operate). Make certain that the browser is NOT on an active webpage (open the browser and choose Menu > Close). Close any other applications that do not need to be running (the camera or a game you were playing or Google Maps).
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Import DNG Hang Problem with OSX not with Win 7

    I installed LR4 on both my Mac Pro and Win7 machines for comparison purposes and have encountered a problem with importing files and converting to DNG format with OSX that is not present with Win7.
    OSX machine
    first gen Intel MAC Pro + 8GB memory multiple disks OSX 10.7.2
    Win7 Machine - latest set of MS patches installed
    Sandy Bridge Processor I5 2500K + 8GB memory multiple disks
    On both machines:
    I am importing 12 test images taken with my Nikon D300 and using a Kingston USB card reader
    Copying to a data only disk that does not contain the catalog
    Convert to DNG with copy to a sub-directory
    Renaming the files to DSC_0001.DNG sequence format
    Standard Previews
    Dont import suspected duplicated enabled
    No develop settings
    Metadata with a simple copyright statement
    OSX seemed to import the 12 DNG's ok as they all showed up on the Library grid screen... but the import seemed to hang before completion and no CPU was being consumed - this was prior to the previews being generated
    I waited for 10 minutes with no CPU activity and then cancelled the Lightroom task, at that point LR4 generated the previews and everything looks fine, I can modify the DNG images and everything seems normal with them
    With Win7 everything went as expected and completed in under 1 minute
    I have screen shots available and I can reproduce this behaviour consistently on OSX

    UPDATE - Further testing
    I tried to import the images into LR3 and it worked fine on OSX (I don't have LR3 on WIN7)
    However when under LR4 the hanging problem also occurs if I do a straight copy as well (ie: Dont convert to DNG format)

  • HT201210 I have 4s facing hang problem after updating when i dicline the call the keypad geting locked ,touch stop working unable to unlock the phone .then what i can do i restart the phone with pressing home key & power key together then i am able to ace

    I have 4s with 16GB storage capacity using IOS 7.1.2.
    Facing hang problem after updating when i decline the call the keypad getting locked ,touch stop working unable to unlock the phone .
    Then what i can do i restart the phone with pressing home key & power key together then i am able to access it.
    Kindly resolve the issue as soon as possible
    Ashish
    [email protected]

    Did you already try to set it up as a new device, as explained in this article?
    iOS: How to back up your data and set up your device as a new device

  • N79 hanging problem

         I purchased N79 1.5 years back. Now a day, it hangs so frequently. It is annoying me too much as most of the time while trying to call during phone book search it hangs. I tried the below solutions to make clear
    I reset the phone to factory settings using *#7370#. Once it hanged and it was not rebooting at all as caution given while doing factory reset. Then second time it was fine. No improvement…
    Phone reset + Removed all the content from Memory card (4Gb) and formatted from phone. Then copied, only picture, video, message folders… No improvement…
    Kindly suggest me how I can avoid hanging problem…

    I have also same problem with my Nokia N79, I just cancelled sensor for automatic themes from cover. Just open back cover & stick some paper or plastic cello tape on four hole marks of covers wich r sensor for automatic themes to change colour of back cover same as theme colour. From 2 days I feel my mobile working fine without hanging ! so try it, all the best.

  • Extreme hang problem in Xperia T2 Ultra Dual after Lollipop Update.

    Extreme hang problem in Xperia T2 Ultra Dual after Lollipop Update.Extreme and Irritating hang problem occurs after I have updated T2 Ultra Dual Phone with Lollipop Version.Kindly assist and also if Boot the device will it be solved via flashboot and unlock the bootloader?? Waiting for revert.Kindly revert.

    Flashmode or Fastboot mode is only for those that wish to root and install a custom Rom or firmware, if that's what you want to do then head over to XDA - Howwever have you tried a system repair as this usualy fixes issues after an upgrade.
    Performing a system repair using PC Companion will often fix issues - This will factory reset your phone and erase all data so best to backup before you begin
    Switch off your phone and unplug from Pc (Hold volume up and power for around 10 seconds)
    Start PC Companion and select Support zone then Update my phone/tablet then in Blue Repair my phone/tablet and follow the on screen instructions - When prompted connect your phone still switched off holding volume down or back button - This should start the repair or reformat process
    If you are using Windows 8/8.1 or a 64bit operating system then adjust the settings for PC Companion and run in compatibility mode and chose Windows 7 or XP

  • Iphone4 getting soomuch hanging problem

    hello
           i am using Iphone4 from feb-18 2014 from that day i am facing with soo much hanging problem .I had submitd  the phone to service center for 6 to 8 times .there are formating the phone and there are keeping for observation for 2 to 3 days everying time there are solving the problem i am also having the videoes of hanging the phone . i am not satisfied with this phone .every day 4 to5 times the hanging problem is getting .
    I am geeting irritation on the service people aslo .if ur people not able to solve the problem .I will produce the bill and phone in court with hanging vidieos. if u want the videos i will send that also to ur mail in this there is no video attachment

    the problem of hanging is with n72.
    i m also frustrated wuth n72.
    regarding the nokia care center is located in lower parel in phoenix mills.just get to phoenix and ask anybody about nokia care centre u will get there.

  • Why does FF4.0 experience hang problems when the latest version of the Adobe Flash plugin is enabled?

    I have tried uninstalling and reinstalling the latest version of Adobe Flash plugin, determined that this is the only version of the plugin recognized by FF, and determined that there is no Adobe extension running. The hang problems occur when opening most all web pages or when clicking on the sidebar and last for 10 to 30+ seconds. If the plugin is disabled, then there are no hang problems.

    New plugins have never been downloaded automatically by Firefox, but Firefox scans the registry to search for new plugins.
    * https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Plug-in_Basics#How_Gecko_Finds_Plug-ins
    * https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry

  • Will ios8 create hanging problems in iphone4s

    Will ios8 create hanging problems in iphone4s

    "Do Not Download iOS on to your iPhone 4S"
    http://gizmodo.com/dont-put-ios-8-on-your-iphone-4s-1635763610?utm_medium=referr al&utm_source=pulsenews

  • If i Update Driver my pc facing Hang problem..

    My pc configurations:
    mother board : MSI p45 Diamond
    Processor : Intel Quad Core Q9500 12M 2.83G
    Graphics : MSI GeForce 8800GT, NX8800GT-T2D1GE
    Windows Vista 64 bit
    Now i m using vista 64 bit windows..My problem is If i download My graphics card update Driver from Nvidia site and after install it my pc facing Hang problem..and if i reinstall my old driver (which i get from the card)  my pc performance well..I also not get xp 64 bit driver with my graphics card...so i also download xp 64 bit driver from net and install it..and facing the same hang problem..Only my old driver work well..Now i want to use xp 64 bit windows..because of driver i cant use it.....pls help me how I Solve my problem..
    Thanks
    Chinmay

    Quote from: chinmay on 15-October-09, 22:35:08
    I have no experience about  Flash BIOS...Can i Flash it Using Live Updates??..
    >>Use the MSI HQ Forum USB flasher<<

  • Window8.1 Hang problem

    Hi
    I have updated Window 8 to window 8.1. After updated window, i am facing system hanged problem. its automatically hanged system and taking too much time to start working normally. I have tried to Restore window 8. but its not worked. I have updated window in janvary month 2015. Now in System reStore section show 22-3-2015 restore option. How can I retrive my window 8 ???? I need solution please help me.  or please suggest me system hanged soultion so i will work.
    Looking for forward to expert response.
    Thanks!

    Hi @Jatin2 ,
    Welcome to the HP Forums!
    It is a great  place to find answers and information!
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I grasp that after updating from Windows 8 to 8.1 your system hangs and is taking a long time to startup.  You have tried to do a Windows restore but you only saw a restore point for 22-03-2015.
    I suggest you do a HP PCs - Refresh Your PC to Resolve Problems (Windows 8) to reinstall the original Windows 8.
    Once you have completed the refresh process here is a link to HP PCs - Updating Windows 8 to 8.1 as a guide.
    Good Luck!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • HT4623 my i phone got hanging problem after ios 7 installation?

    Dear friends
    my i phone got hanging problem after ios 7 installation?
    please help me

    has your phone been jailbroken?

  • 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.

  • JFileChooser visibility problem

    Hi,
    I have a problem with JFileChooser-component. Every now and then the JFileChooser-component won't come visible and the application hangs.
    For example:
    import java.io.File;
    import javax.swing.JFileChooser;
    public class Main {
        public static void main(String args[])
             JFileChooser fcSaveAs = new JFileChooser();
             fcSaveAs.setSelectedFile(new File(fcSaveAs.getCurrentDirectory() + File.separator + "test.pdf"));
         int saveResp = fcSaveAs.showSaveDialog(null);
         if(saveResp == JFileChooser.APPROVE_OPTION) {
              System.out.println("true");
    }So, I want to give the user a sample filename, which he/she can use to save a file.
    But if I run that, every fifth or sixth time the dialog won't come visible and the application hangs. The user can't do anything but stop java.exe.
    If i take that line 8 off, system works fine. But I want to give a sample filename to the user, which he/she can use to save the file.

    Hi,
    Have you tried running on the Event Dispatch Thread (as you always should with Swing code)?
    import java.io.File;
    import javax.swing.JFileChooser;
    import javax.swing.SwingUtilities;
    public class ChooserTest {
        public static void main(String[] args) {
         SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
              JFileChooser fcSaveAs = new JFileChooser();
              fcSaveAs.setSelectedFile(new File(fcSaveAs
                   .getCurrentDirectory()
                   + File.separator + "test.pdf"));
              int saveResp = fcSaveAs.showSaveDialog(null);
              if (saveResp == JFileChooser.APPROVE_OPTION) {
                  System.out.println("true");
    }Piet

Maybe you are looking for

  • Document Expired

    My web pages are built with JSP + javascript + AJAX, so a little dynamic when loading a page (it is NOT a static HTML text page). As a common practice, when users visits my website, they can click on a hyperlink to open another webpage. When they wan

  • Running both Tomcat and JSWDK server on same win2000 server m/c

    Hi all, I was running Tomcat4.0.4 on my m/c which operates on WIN2000 server. Afterwards I installed the JSWDK 1.0.1 on the same m/c. I worked with it for sometime. But when I went back to starting up the tomcat again, it would not startup. The dos w

  • How FDM can import metadata to EPMA

    Hy All, I would like to know how FDM ERP Integrator can import metadata from an Oracle General Ledger table to EPMA´s interface tables. Only via VB Scripts? Which one is the best practice or have better use: ODI reading from Oracle General Ledger and

  • When can we expect the next Beta build ?

    Hey, when can expect the nex beta build, and can you give us an indication of what new/enhanced features to expect? Loving Catalyst, it's going revolutionise the way we work ... Thanks

  • Can I upgrade to Lion?

    These are the specs of my machine: Hardware Overview:   Model Name:          Mac Pro   Model Identifier:          MacPro1,1   Processor Name:          Dual-Core Intel Xeon   Processor Speed:          2.66 GHz Mine does not matach exactly to this but