Lag problem with JFileChooser

I have searched the archives and haven't found any useful information regarding the fact that creating a JFileChooser lags horribly on some systems...namely mine. I have tried running my own program and the FileChooserDemo on java versions 1.4.1_02, 1.4.1_06, 1.4.2_01-b06, and 1.5.0 beta and all of them have the INCREDIBLY slow lagging problem. I am running Win XP pro P3 800 386MB and it takes over 40 seconds to load the chooser. I have disabled all anti-virus software to no avail. I have run my program on a computer at my college which runs Win XP also and there it runs fine...so I am at a complete loss as to what could be wrong. If anyone has any insight into this problem please let me know!
thanks

Yeah...they talk a lot about theories of what the problem may be, but only offer a few solutions...none of which have helped me (loading the JFileChooser when app starts, and stopping anti-virus software). Thanks though.

Similar Messages

  • Anyone had problems with jFilechooser?

    I have problems with JFilechooser freezes when invoking returnVal = chooser.showDialog(this, "Select");
    For some reason it freezes the entire program, allthough sometimes (rarely), it doesn't freeze.
    Are there currently any problems with JFileChooser? I have not had any problems when embedding it in a window - only when using it on its own with JFileChooser chooser = new JFileChooser();
    Regards / Daniel

    There was a bug with JFileChooser where it would be unnecessarily slow when the directory it was showing contained huge zip files on Windows. It seems like it had something to do with the Win32 API calls they were making actually looked into all of the zip file's entries even though it didn't need to. This was fixed back in Java 6 update 10. What Java version are you using?
    If that isn't your problem, you'll have to post an SSCCE demonstrating your problem to get any help.

  • Problem with JFileChooser

    I have a problem with JFileChooser.showOpenDialogBox(Component c). When I select a directory and click the Open button,the program goes wacky. Same is the case if I click Cancel button without selecting any file. How to solve this problem. I want the directory be opened and all subdirectories and files be shown just as in MS Word for example.

    I have a problem with JFileChooser.showOpenDialogBox(Component c). When I select a directory and click the Open button,the program goes wacky. Same is the case if I click Cancel button without selecting any file. How to solve this problem. I want the directory be opened and all subdirectories and files be shown just as in MS Word for example.

  • Having lagging problems with YouTube videos, it simply takes so long for the red bar to completely load and the videos frequently pause and take too long to restart playing again.

    I have been having lagging problems with YouTube videos for a number of months now. It simply takes so long for the red bar to completely load and the videos frequently pause and take too long to restart playing again. Even with little 2 and 3 minute videos.
    I have a fast computer and my webpages load really, really fast. I have FireFox 4 browser and a Vista Home Premium 64-bit OS. So I don't have a slow computer or web browser. But these slow YouTube vids take way too long to load for some reason.
    Does anyone have any idea how I can speed up YouTube?

    Hi
    The forums are customer to customer in the first instance, Only the mods (BT) will ask for personal information through a email link. Would you mind posting your Hub stats & BT speed test results this will help all with diagnosis-
    To post the full stats from your router
    for home hub - 192.168.1.254
    Navigate to ADSL Settings or use the A-Z at the top right
    Click on More Details and then post the results.
    Run BT speed tester and post the results from http://speedtester.bt.com/
    If possible it would be best to connect to the BT master socket this will rule out any telephone/broadband extension wiring also consider the housing of the hub/router as anything electrical can cause problems as these are your responsibility, if these are found to be the case Openreach (engineer) will charge BT Broadband, which will be passed onto you, around £130.00.
    Noisy line! When making telephone calls, if so this is not good for your broadband, you can check-
    Quite line test dial 17070 option 2 and listen - should hear nothing best done with old type analogue phone digital (dect) will do but may have slight hiss If you hear noise- crackling pops etc, report it as a noisy line on your phone, don’t mention broadband, Bt Faults on 151.
    As for your FTTC its available in some areas between 40% & 80% of customers in enabled areas can receive it!
    Mortgage Advisor 2000-2008
    Green Energy Advisor 2008-2010
    Charity Health Care Provider Advisor 2010-
    I'm alright Jack....

  • Iam getting problem with Jfilechooser iam not getting networkneighbourhood

    Dear Sir,
    Iam doing a product for education portal for that we are using swing as frontend in that we are using Jfilechooser where ever we want but the problem is in filechooser iam getting the directories of the system(like C, D, E). But iam not getting the networkneighbourhood in that. Please any body can solve my problem i want to select networkneighbouhood. Ill be waiting for your reply.If apiece of code is there ill be very thankful.
    regards
    surya

    Unfortunately can't be done with JFileChooser, you would have to write your own version.
    See the bottom of this document
    http://java.sun.com/products/jfc/tsc/articles/merlin/windows/index.html
    Unfortunately the link that the text then leads you on to is broken.

  • Brush pressure and lag problem with CS4

    I've been having a huge problem with Photoshop CS4 and the brushes. Whenever I go to brush, the pressure will turn off and on randomly with each stroke, and it lags horribly. I've installed CS4 on two computers with Windows 7, and both have this problem, but my old computer which had Vista was perfectly fine. I've tried downloading new versions of CS4, turning the OpenGL on and off, updating the GPU, downloading the Windows 7 tablet driver (that made it worst), and a bunch of other things. Nothing has worked, and this problem has been going on for two months. I'm starting to think the only way to fix this problem is by switching back to Vista. Can anyone please help me solve this? Thank you.
    My computer is an HP that runs on Windows 7, my Tablet is a Wacom Intuos3, and I have Photoshop CS4 Extended 11.0.2

    Others have reported that completely removing the tablet driver(s) first, then installing the very latest from the Wacom web site have made things work.
    Good luck.
    -Noel

  • Problem with JFileChooser and ImageIcon

    I'm trying to create an ImageIcon object from file selected in JFileChooser. The problem is that jfc.getSelectedFile().getAbsolutePath() returns a string with backslashes and the constructor of ImageIcon requires the string to have slashes. I`ve tried to create it via URL but it doesn't work as well...
    String lastUsedPath;
    URL imageURL;
    JFileChooser fc = new JFileChooser();
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    int returnVal = fc.showDialog(frame,title);
    if(returnVal==JFileChooser.APPROVE_OPTION){                    
         lastUsedPath = fc.getSelectedFile().getAbsolutePath();
         imageURL = getClass().getResource(lastUsedPath);     //don't really get this but I copied it from Java Swing Tutorial          
    }else{
         return null;
    int curH, curW;            
    ImageIcon srcIcon = new ImageIcon(imageURL);                              
    curW = srcIcon.getIconWidth();
    curH = srcIcon.getIconHeight();If I use it this way imageURL is set to null.
    If I set the imageURL as 'fc.getSelectedFile().toURL()' the string is eg.: "file:/E:/file.jpg" instead of "E:/file.jpg". After that the ImageIcon is created but width and height return -1.
    If I try to create ImageIcon by 'new ImageIcon(lastUsedPath)' I get a not null object but the width & height of the ImageIcon is -1 as well.
    What do I have to do to be able to create an ImageIcon from file selected in JFileChooser? Why is this so hard and mind blowing?

    It still returns the ImageIcon object with width & height set to -1.
    EDIT:
    Got it finally:
    lastUsedPathForStupidImageIcon = fc.getSelectedFile().getPath();     
    img = ImageIO.read(new File(lastUsedPathForStupidImageIcon));
    curH = img.getHeight(this);
    curW = img.getWidth(this);The key was to use another String variable and hold the path instead of the absolute path
    Edited by: Beholder on Jan 17, 2010 1:35 PM

  • Problems with JFileChooser and Windows 2000 (can't see mydocuments contents

    Hi! I've an applet which has a JFileChooser component. In other Windows, I can select the MyDocuments folder and it goes there and list all the contents OK. But, in Windows 2000, when I go to MyDocuments, none of the contents is listed in the file chooser. I need to navigate through all the directories to get there (C:\documents and settings\user\my documents) and then, it shows its contents, but obviously, I don't want it to be this way because is difficult for the common user.
    Any idea of why is going on this?
    Thanks in advance!

    Hello, You need to use something like o=isp as the
    root DN, then o=yourorg.com goes beneath it.
    i.e.
    For the other questions on setup, just choose o=isp
    as base DN when you set up the directory server. When
    you run ims_dssetup.pl, choose o=internet as the DC
    tree base, then choose o=isp as the user/groups base
    suffix.
    When you are installing messaging server it will ask
    where to put the default organization, this is where
    you would choose o=abc.com, o=isp
    For more info on how this structure works please take
    a look at this link and it will all fit into place:
    http://docs.sun.com/source/816-6017-10/changes.htm#170
    8Alright, I got ims_dssetup to run successfully. But now when the ims 5.2 installation is about 50% done, I get the message:
    A serious problem occurred while installing the iPlanet Messaging Server Messaging SIE entry in LDAP (msg.cfgldap.sie.inf). It reported the following problem:
    The server configuration for the Messaging SIE entry in LDAP (msg.cfgldap.sie.inf) cannot be created.

  • Problem with JFileChooser when run using Netbeans

    I just want to state that I have NO problem writing the code that brings up this component. My problem is what happens when the JFileChooser component is loaded. My environment is Windows Vista, Java SE 1.6.0. -> Netbeans IDE 5.0. The code I use is as follows:
    public RegexParser()
    JFileChooser openfile = new JFileChooser();
    openfile.showOpenDialog(RegexParser.this);
    int returnVal = openfile.showOpenDialog(RegexParser.this);
    if (returnVal == JFileChooser.APPROVE_OPTION)
    //This code gets the path of the file and uses as a parameter to parse data.
    filename = openfile.getSelectedFile().getPath();
    openfile.setVisible(false);
    ParseData(filename);
    The problem is when I try to select an option from the combobox labeled "Look In:" Every directory I select which is not the root of the drive will display NO FILES even though there are files in that directory.
    Notice: I have also run the same code using the cmd.exe and it works fine. I have also looked at: http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html but have found nothing that has helped me.
    Can someone explain what is the problem? Is this a known bug in Netbeans? Is there any code that can be used as a workaround?

    Yes I copied the code to my machine and run it. The example program had problems when I executed using netbeans it had the problem.
    When I executed using Command Prompt there where no problems.

  • A problem with jFileChooser

    I'm creating a GUI application in NetBeans, where I'm using jFileChooser object to select a file when a user clicks a button, the filechooser dialog appears and doesn't respond to the user's action but after closing the file chooser using the close button. When I click the button second time it works fine, what could be the problem. If possible, Please give me the code that does it.
    Thanks in advance

    In the future all swing related question should be posted in the swing forum.
    All you need to know about jfilechooser.
    http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html

  • Rendering and lagging problems with FCP  X

    Hello,
    I am working on a  Mac OS X Lion 10.7.3 (11D50b) -  Processor  2.4 GHz Intel Core i5 - Graphics  NVIDIA GeForce GT 330M 256 MB and Memory  8 GB 1067 MHz DDR3.
    My 30 minute project has been completed but every time I reopen it, there is a short sequence that always needs rendering. It takes a very long time for this sequence to render and FCP X regularly crashes and slows down. The software is very slow and sometimes non responsive.
    This is my first try with FCP X. I've been working with FCP 6 and changed to FCP X recently. I’ve imported a lot of jpg and mp4 files. I import with proxy and optimized files and analyzed preferences. I’ve tried running my project with my hardrive as well as my external hardrive.
    FCP X is generally lagging and unstable. It also slows down my computer.

    mp4 files. I think that is not a good idea to use that format with FCPX. With my camera I have the options to use mov. (native for FCPX) or mp4. I use mov.

  • Problems with JFileChooser

    I looked thru the bug database and forums but didn't see anything quite like this. I have JFileChooser that I use for a user to select an input test case (XML file) and optionally select an output directory. The trouble is, for some reason, the output directory text value is being corrupted, the last occurrence of the file.seperator is being dropped i.e. instead of getting c:\dir1\dir2\dir3, I am getting c:\dir1\dir2dir3. The code I use is shown below. Am I doing something stupid or is there something else going on? Cheers, Max
            smt.fcOutButton.addActionListener(new ActionListener()
                 public void actionPerformed(ActionEvent ae)
                                  JFileChooser fc = new JFileChooser();
                                  fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                                  fc.showOpenDialog(smt.frame);
                                  try
                                       String filename = fc.getSelectedFile().getPath();
                                       smt.outFileText.setText(filename);
                                       smt.outDir = fc.getSelectedFile().getParent() +
                                            fc.getSelectedFile().getName() +
                                            System.getProperty("file.separator");
                                       System.out.println(smt.outDir);
                                  catch (NullPointerException npe)
            });

    instead of System.getProperty("file.seperator")
    i use
    File.separator
    or
    File.separatorChar
    then I don't have to call the System.getProperty() method.
    have used it on Linux and Windows.

  • Problem with JFileChoosers

    I have a problem with JFileChooser.showOpenDialogBox(Component c). When I select a directory and click the Open button,the program goes wacky. Same is the case if I click Cancel button without selecting any file. How to solve this problem. I want the directory be opened and all subdirectories and files be shown just as in MS Word for example.

    Try and modify the following function:
         * Loads the FileChooser Object if not present.
         *@return Instance of File chooser
         private JFileChooser getFileChooser()
              if (mFlChooser == null)
                   mFlChooser = new JFileChooser();
                   mFlChooser.setFileFilter(
                        new javax.swing.filechooser.FileFilter()
                             public String getDescription()
                                  return sRes.getString("Text Documents (*.txt)");
                             * See Parent for Doc
                             *@param f See Parent for Doc
                             *@return See Parent for Doc
                             public boolean accept(File f)
                                  // Adapted
                                  if (f.isDirectory())
                                       return true;
                                  String extension = null;
                                  String s = f.getName();
                                  int i = s.lastIndexOf('.');
                                  if (i > 0 && i < s.length() - 1)
                                       extension = s.substring(i + 1).toLowerCase();
                                  if (extension != null)
                                       return extension.equals(".");
                                  return false;
              return mFlChooser;
         }

  • Serious Lag issues with Photo Booth and iChat

    Ever since I installed Leopard on my mac book pro, I have had terrible lag problems with the movie option in Photo Booth (sometimes even freezing my computer) as well as the video chat in ichat. With Tiger, lag was never a problem when I was on ichat. I have the 1.83 GHz Intel core duo, so I'm surprised this is happening. Any ideas would be very helpful! Thanks!

    Welcome to Apple Discussions, Hoosier2010
    As you correctly note, the iSight Updater 1.0.3 applies ONLY to Macs with iSight video camera that used OS X v10.3.7-10.3.9. All MacBook Pros came with a later version of Mac OS, and, therefore, cannot use the 1.0.3 Firmware update. That Firmware update is NOT your MacBook Pro's problem.
    If your iSight problems began immediately after your MacBook Pro's drive was replaced, I would suspect a hardware problem left uncorrected during the service call. Contact the people who did the work and ask them to correct the problem that began at the time of hard drive replacement.
    If the previous service work did not cause your problem, try Apple's suggestions for How to Troubleshoot iSight. If none of the suggestions that you can do to your Mac resolve the trouble, your problem likely is hardware. Hardware problems will require help from your Apple-Authorized Service Provider.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1)  External iSight

  • I have an ipad mini 1st gen 64 gb (wifi only) and i have problem with some of my apps. These apps have lags when you play with them for a few seconds the apps are having lags are call of duty strike team, gta San Andreas and nfs most wanted.pleas help me

    I have an ipad mini 1st gen 64 gb (wifi only) and i have problem with some of my apps. These apps have lags when you play with them for a few seconds the apps are having lags are call of duty strike team, gta San Andreas and nfs most wanted.pleas help me

    I'm going to guess videos buffer for a while also...
    Two possibilities, one is you should close apps on the iPad, the other is your internet speed is not able to handle the demands of a high speed device.
    To close apps:   Double click home button, swipe up to close the apps.
    To solve internet problem, contact your provider.   Basic internet is not enough for video games and movies.   Your router may be old and slow.

Maybe you are looking for

  • How can I alt tag the TOC button that appears at the top of the menu?

    Running the current version of Cp7 on a windows 7 machine. A 508 hang up once again: The customer insists on an active TOC for the project file. We've activated the TOC and it works fine, but there's a secondary TOC expand/collapse button located at

  • Extended monitor: how do I maximise windows + trouble using PC keyboard

    I've got an external monitor attached to my Macbook Pro How do I maximise a window in the extended monitor? When I maxmise, it just pops back to my mac screen ALSO: any advice on using a PC keyboard? I'm finding it fiddly using the Windows button ALS

  • Problem with doing an average

    I wrote this code tonight, the sum, max and min work but I can't compute the average. Secondly, I using 0 to stop the loop, but I would like to use Q how would i do that? Int x = 1; double total = 0; int max = 0; int min = 0; double sum = ( total/ av

  • Looking at Threads in jconsole and should I worry?

    When watching a threaded app in jconsole in the Threads Tab, I see a lot of threads, but I assume for several reasons that the ones name btpool#-# where # is a number are the ones in which my code is executing. Now when I select a thread like "main,

  • Best solution to run Sage on multiple Macs and a PC?

    Hi all. We are a small advertising agency of around 10 people, all using Macs, except for our accountant who uses her own PC laptop to run accounting software Sage Line 50. We now want 3 other staff members to access the same Sage database and edit i