JFileChooser refresh question

We all know that the JFileChooser is incredibly sloooooooow in sdk1.4 (especially across networks.)
Maybe someone can help me with this (sort of) workaround:
I selected a directory in the file chooser. It takes 10 mins to come back. During that time, I'd like my mouse pointer to change to the WAIT state. I can do that part, but the file chooser gives me back control before its done & my cursor goes back to the DEFAULT state.
Does anyone know how to find out when the file choose is really done?

Hi all,
thanks for your answers I just realized that I did not expalin myself clearly:
I know about the rescanCurrentDirectory method BUT I do not know how to link it in the JFileChooser diaolog interface.
The only way I figured out is to create an accessory button an add it to JFileChooser (setAccessory) BUT it looks ugly .....
Any idea ????

Similar Messages

  • Oracle 9 Production - Integration refresh: questions

    Hello, I will have to proceed with Oracle 9 database refresh from production server to integration server. 5 biggest schemas must be exported and imported. They constitute 97% space used in a database. This is very big database so I would like to be sure that everything will go smoothly. That is why i want to ask you some questions. Have you got any clues for me before I start with exp/imp? From my side i will tell you that I will have to exp/imp schema by schema because there is small space both on production and integration disk for a dump. First thing I thought are dependencies between schemas that are exported and that which are not, and also between schemas that are exported/imported one by one.
    This is procedure that I plan:
    For every schema that is to be refreshed
    1. Export schema with ROWS=N CONSTRAINTS=Y
    2. EXPORT schema with ROWS=y CONSTRAINTS=N
    3. Import schema from step one
    4. Disable all the foreign key constraints using ALTER TABLE DISABLE CONSTRAINT.
    5. Import schema with rows
    ALTER TABLE ENABLE CONSTRAINT
    With above procedure i think that I will avoid problems with dependencies between schemas exported/imported one by one. But my concern is if there are any dependencies between those schemas and schemas that are not exported. Is there an way to check it before refresh ?
    Are there any details that i forgot to mention and i should be aware of?

    If the issue is disc space, then go via a pipe: create the pipe on the source server with mknod, and use NFS to make the file system containing the pipe visible on the destination server. Then you can start the import reading from the pipe, and start the export writing to the pipe. That way you do the whole job (all the schemas) in one exp/imp run, without staging anything on disc, and no dependency issues.
    Any good?

  • JClient Refresh Question (Am I trying too hard?)

    Environment: Windows 2000, JDeveloper (9.0.3.10.35)
    I have a JClient with a bunch of JTextFields bound to my BC4J app. I perform all of my business logic calculations/validations in the entity objects. I have some entity calculated attributes and these are calculating just fine. However, I also do some more complex calculations and manually set these entity attributes (about 5 of them). These calculations are triggered whenever a user modifies a textfield...
    My problem is that whenever I modify a textfield, the calculations are performed, the entity attributes updated, but they aren't shown/refreshed in the client. Hmmm... Here are some of the things I've been trying:
    - Override sourceChanged() in my view implementation. Ok, I can see "attribute changed" events, but how do I update the Swing textfield?
    - Got a handle to the iterator binding and forced a refresh from entity->view by calling "navigate(null)".
    Calling navigate(null) worked, so I then thought I could add this logic to the sourceChanged() handler but I am not sure about the easiest way to get the iterator binding from the view implementation. Hmmm... I think I'm making this way too hard... Am I missing something totally basic here? Any suggestions would be great? Thank you.
    BTW, the attributes are marked as updateable in both entity and view.

    I've done some more debugging, looking into the areas you referred me to... I think I have stumbled across the "eventing mechanism bug" between EO and VO when subclassing is involved (Re: package in all_objects shows invalid but compiles fine
    ). I failed to mention that I was using a polymorphic rowset because I didn't think it was relevant (shouldn't have assumed...)
    Here's what I've verified:
    When I set an attribute in the entity with no subclassing, notifyRowUpdated() is called in the view object. However, if the entity is a subclass, notifyRowUpdated() isn't called.
    Your first question may be if I have correctly setup the polymorphic rowset behavior. I think so... I've read all the articles/how to's that I've found about polymorphic rowsets in this discussion group. My "abstract" view points to my abstract entity, and then imports all of the subclasses (defined when you click the "subtypes" button in view object properties window). The discriminator is working and BC4J is instantiating the correct subclass, however, the view isn't getting notified when an entity's attribute is modified (ie, notifyRowUpdated() isn't getting called).This info along with the other link gives us enough to reproduce the bug and as mentioned in the other link, it is targeted for fix in our next release.
    The workaround to the "EO/VO eventing bug" was to call executeQuery() to refresh the detail. My problem seems to be in a slightly different context, so I'm not sure exactly what to do. As I had mentioned earlier, calling navigated(null) seemed to refresh the view. Should I pursue this or do you suggest something else? naviated(null) is a fine workaround. JClient bindings simply get the current row from 'the iterator' and displays that so that's effectively a refresh on the control-bindings.
    Would you like a small repro case? Thank you. Let us know if you hit any issues with this workaround.
    Thanks
    Shailesh

  • Iterator Refresh Question

    Hello there,
    i have a case where i have a search screen that is based on a table , let's say employees, the results is an ADF Read Only table. I brought the department name from the deparments View object to the employees View object so i can see the name as well as the id in my Results. Now i have a button Create , when i create an employee and enter a department id and then press save , the page results to the search screen where the new record i created appears with the department id but without the department name.
    My primary thought was to set the refresh iterator property but i'm not being able to solve my problem.
    Anyone can help me ?

    In your backing bean, if you have access to the binding container, run something like the following:
    DCIteratorBinding iter = (DCIteratorBinding)bindings.get("MyIteratorName");
    iter.execute();You can gain access to the binding container by doing the following:
    1. Define an instance-level field in the backing bean:
    private BindingContainer bindings;2. Add a getter and setter for the field:
        public BindingContainer getBindings() {
            return bindings;
        public void setBindings(BindingContainer bindings) {
            this.bindings = bindings;
        }3. Add a managed-property to the definition of your backing bean in faces-config.xml:
      <managed-bean>
        <managed-bean-name>myBackingBean</managed-bean-name>
        <managed-bean-class>com.acme.backing.MyBackingBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{bindings}</value>
        </managed-property>
      </managed-bean>If you don't want to add a managed property to the bean, you can locate the BindingContainer like this:
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ValueBinding bind = app.createValueBinding("#{bindings}");
    BindingContainer bindings = (BindingContainer)bind.getValue(ctx);

  • Query Refresh Question

    If the user wants to change the value of varables after executing the query for a diff set of variable values ...hw wud s/he do that?
    Close & Reopen the query ...???
    If  the variables r in the filter n if the values are changed in the report for that variable - filter ..it doesn't work....
    Refreshing the query wudn't prompt for variable inputs...right ?
    How to refresh the query when I am on report?

    Guys,
    <b><u><b>
    Refer</b></u></b>
    <b>Below is the query template for YTD report:</b>
    <b>Filter – Characteristic Restrictions</b>
    None
    <b>Filter - Default values</b>
    Posting Period
    Controlling Area
    Cost Center
    Fiscal Year
    <b>
    Rows/Columns – Free Chars</b>
    Fiscal Year
    Posting Period
    <b>Rows/Columns - Columns</b>
    0Amount – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Single user entry posting period variable )
    0YTD – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Value Range ( 1 - Single user entry posting period variable ) )
    <b>Rows/Columns – Rows</b>
    Cost Center
    Controlling Area
    When I execute the query & enter the variable values for Fiscal year ( say 2007 ), Posting Period ( say 7 ) - it shows correct data.
    Issue : On report when I change the filter of posting period to say 6 it shows only YTD values blanking out 0AMOUNT values for posting period 6 .
    <b>
    "When I do change variable it doesn't work accordingly "...what happens?
    It doesn't show data for 0amount.</b>
    Message was edited by:
            Jr Roberto

  • CFWindow Refresh problem

    Having issue with cfwindow.
    Created the function called
    function makeWindow(windowname,
    windowTitle,goWhere,width4window, height4window) {
    ColdFusion.Window.create(windowname,windowTitle,goWhere,
    {refreshOnShow:true,center:true,modal:true,width:width4window,height:height4window});
    and making a call to the function
    <cfoutput>makeWindow('summary','Project
    Summary','#request.self#?fuseaction=#attributes.XFA.btnSummary#&project_id='+MyProjID,700 ,500);</cfoutput>
    The problem is when this window opens its not refreshOnShow.
    if i open this window. Inside that window I have a form, i
    submit the form saw the confirmation page, and closed the window.
    now if ever I come back to same window, it shows me the
    confirmation page, not the form page.
    Also is there any way to get the window name from Javascript?
    Any trick to close the window if you don't know the name of
    the window? or just to check if this window is open or not?
    Thanks.

    Asim, not sure if you've resolved this issue, but here is a
    quick tip that I figured out. This is UNDOCUMENTED, but works for
    me. to do a refreshonload like the <cfwindow> tag has, you
    need to include '_cf_refreshOnShow' in your Window.create() call
    like such:
    ColdFusion.Window.create(windowname,windowTitle,goWhere,
    {refreshOnShow:true,center:true,modal:true,width:width4window,height:height4window,_cf_ref reshOnShow:true});
    As for your other question, I'd have to think about it for a
    while. I'm sure there is a way to loop through the '_cf_'
    javascript variables to see all the windows, but I haven't messed
    with seeing what all coldfusion sets up on a window.create call.
    And again, it would be an undocumented thing, so if they change it
    in the next release, who knows if it will stay the same . . .
    Hope that helps you with your refresh question though!

  • Change cursor to hourglass in JFileChooser

    Greetings,
    I'm trying to find a method to change the mouse cursor into a hourglass in JFileChooser when the user navigates through the directory structure.
    I'm currently developing an application where files need to be loaded over Windows 2000 NetBEUI network. In JFileChooser, refreshing directory views can take quite a long time (sometimes a minute or so) when navigating through another user's computer through the network. Therefore, it would be a good thing to change the mouse cursor into a hourglass (JFileChooser doesn't change it by default) whilst refreshing the file view so that the user won't get the impression that the program has hanged...
    Is there a method for doing this besides modifying the actual JFileChooser class? This would be an easy solution but I've gotten the impression that is illegal (against Sun's J2SDK license, that is) to modify the classes in java.* and javax.* packages?
    Thank you for your time!

    Thanks, that points me to the right track. I should have thought of extending JFileChooser myself.
    There's still a slight problem, the code snippet you provided changes the cursor back to the default too early, i.e. before the files in a specified directory are visible. I think the cursor should be set back to the default one in some other overridden method...
    But thanks anyway, back to the JFileChooser JavaDocs :)

  • JFileChooser Question .... wo hoo!

    Hey there,
    I have a question regarding the JFileChooser class. I have managed to instantiate a file chooser and specify that it display directories only, I have also worked out how to get information when the "Attach" button (my custom button) or the "cancel" button is pressed. When the "Attach" button is pressed I return a file object that selects the user selected directory. I then print the directory to the standard output. Unfortunately the entire selection is not being printed, only the top level directory relevant to the selection is being printed. If you are familiar with JFileChooser then you will probably know what it looks like when it is instantiated. To refresh a couple of areas of significance to my program are the "Look in:" section and the "File Name:" section.
    I need my program to print the inforamtion in the "File Name:" section not the "Look in:" section as it is doing now. My code is as follows:
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class TestChooser extends JFrame
      public TestChooser()
        final JFileChooser fC = new JFileChooser(); //Final modifier needed
                                    //because this object is used in an  inner class.
        fC.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        JButton button1 = new JButton();
        button1.setText("Activate File Chooser");
        button1.setBounds(50, 50, 50, 50);
        button1.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            int returnVal = fC.showDialog(TestChooser.this, "Attach");
            if(returnVal == JFileChooser.APPROVE_OPTION)
              File curDirectY = fC.getCurrentDirectory();
              /* The "Look In:" Label information is being returned,
                 instead of the complete directory & folder details
                 contained in "File Name:". Note that File Name has the
                 keyMnemonic of underscore N.
              String str = curDirectY.toString();
              System.out.println("Of course the selected Directory is "+str);
        this.getContentPane().add(button1);
      public static void main(String args[])
        JFrame frame = new TestChooser();
        frame.setBounds(100, 100, 300, 200);
        frame.setVisible(true);
    }I have noticed that the "File Name:" section has a Key Mnemonic of N so maybe that can be used in the actionListener, I'm just not sure how. If anybody can help me with retrieving the information from the "File Name:" section as opposed to the "Look in:" section it will be greatly appreciated.
    Regards
    Davo

    <snip>
    File curDirectY = fC.getCurrentDirectory();The above method is the wrong method to call. It returns the directory that the JFileChooser itself is pointing at. It knows nothing about what file or directory may have been selected. Use the getSelectedFile() method instead.
    Jim S.

  • Questions on FP1, FP2, Belle Refresh and availabil...

    Hello,
    First things first: Note that my post is not intended to ask when Belle Refresh will be available for my phone. I have been reading a lot about this topic, on this and many other forums, and know by now that I need to be patient and wait for Belle Refresh to be available for my Nokia N8-00.
    My questions are:
    Among the many things I read, one caught me completely off-guard. It stated that Belle Refresh might be discontinued for older phones like the N8 because of the many hardware limitations, the many reported issues and the complexity of the deployment for the many different product codes. Is there any truth to it?
    Can someone please explain what the FP1, FP2 and Belle Refresh features are, what the release sequence is, and why these updates have not been released simply as "Symbian Belle updates" and identified by a sequential software version number?
    Lately, I have noticed that there are more and more apps for Symbian "disappearing" from the Store. I noticed this when I tried to reinstall a home-banking application after a full phone-reset/reinstall and I was not able to find that app on the Store anymore. The Store's support was not able to help and recommended to contact the software provider. So I did. Their answer was pretty straightforward: "We are not developing applications for Symbian anymore because it's an obsolete and unsupported platform." (sic) Other software development companies gave me similar answers (anyone can contact and ask Soft Pauer, a company that develops a Formula 1 app. This company is the official software provider for "Formula One World Championship Limited" and disregarded the Symbian platform as a target for the official Formula 1 mobile app last year). My question: Has anyone in this forum also heard something like this? If so, why is Nokia telling us they will support and promote Symbian until 2014?
    Thank you!

    The Nokia Belle Refresh was just released about a week ago or so. So, even if there is indeed Nokia Belle FP2 Refresh or whatsoever for these phones, it might take (Probably) months for it to released. In anyhow, we will never know when will it released or even if there IS Nokia Belle FP2 for Nokia 500 or older.
    If I have helped you in any way, give me a kudos!

  • Additional question: How can I fix the refreshment settings, so that my browser doesn't destroy entered form information?

    In addition to the question below, another problem is not only are my email responses erased when the browser refreshes, the message itself is no longer available. I have to start from the beginning point in my email list, rather than remain on the once-opened email.
    By the way, I have reset and restored my Firefox as a solution, which didn't help. I did this twice, following instructions. The process was tedious and I had to recover quite a bit of information, not to mention a problem with merged bookmarks. I'd like to avoid this solution, at all costs. Here's what I said earlier. Again, thanks for any/all help you can provide.
    For the past several weeks, now, I've noticed that my browser "refreshes" the feed more frequently, so frequently, in fact, that any emails, forms, or survey questions that I am answering get wiped clean. This started happening with the latest update. I am unable to locate any setting in my preferences that will stop the constant refreshment (reload? page update?). This is also frustrating when trying to make purchases on line, and as I said, write emails, complete forms, complete surveys, etc.
    Thank you in advance for quickly resolving this most frustrating problem?
    I use a Mac, and am running Mavericks. This problem was present with the previous OS, too. Thanks again!

    A few moments ago I tried to type an elaborate message and commended your site here for sitting still long enough for me to enter my message without being devoured by the “refresh feed.” Unfortunately, the page refreshed and wiped away my brilliant response to your questions. I will try to answer more briefly, and will cut and paste my reply. I pray that I don’t have to do this repeatedly. Here goes:
    1. I used the term “refresh feed” because that was the only way I knew to describe it. For example, the ads change regularly in the NYT Online. I do subscribe to that. The pop-up alert has been coming far more frequently than before, and the ads are coming far more frequently than before. I see a correspondence between the refreshed ads and the change in the webpage. This is why I called the problem “refresh feed.” By the way, I have my pop-up block set to block.
    2. I use Desire to Learn (D2L). I don’t subscribe, per se, but it is a password-protected site I have to use for my work. Within D2L, when I try to compose a message or respond to a question, what I write is immediately erased when the page refreshes, which is quite frequently. I am forced to compose on another program, as I’m doing now, and pray that I can paste my message in before I lose the entire email; I have to reenter the “to, from, subject, message,” and so on. I’ve had to do this over and over and over and over for just one message.
    3. The issue happens when I use Outlook online. At least there I get a question asking if I really want to leave the page. Of course, I don’t because I’m still composing my message. I’ve taken to saving the messages frequently. I can’t do that in the D2L app.
    4. This issue happens when I am just browsing a webpage for which I have no affiliation. The page will refresh and I find I’m back at the beginning of the initial page, or the beginning of an article I’m reading (if I’m lucky) or series of photographs or whatever. My place is lost. I often have to start all over again. It’s as if I’ve never been there.
    5. This issue happens when I’m trying to make purchases. It happens immediately when I enter personal data. It’s as if I’ve not entered anything. I only use trusted sites. I’ve run my Internet security software and have checked for viruses. All is well there, at least I hope so.
    I hope, too, that this additional information helps you help me. I so need it. Thanks much.

  • HT1310 when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what

    when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what

    Here is an article that describes what it is supposed to do:
    Startup Manager: How to select a startup volume
    If no Volumes are shown, it is telling you there are no potentailly bootable Volumes attached. That means your boot drive has died or the bootable image on it is unrecognizable.
    What Mac Pro ? by year, GHz, number of processors, screen size?
    What Mac OS X ?

  • Newbie Question: Getting the file name from a JFileChooser

    Hi,
    I have a simple problem.
    I'd like to get the filename that a user types into a JFileChooser Save dialog before they save a file.
    How do I retrieve this name?
    Cheers,
    Chris Share

    Hey it's ok, you're new. But one thing you've got to learn is to RTFM (Read the .... Manual). You'll answer own your questions much faster that way.
    Take a look at the example at the top of:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html

  • Satellite U200 - questions about screen refresh rate

    Sattellite U200-148 WINXPHOMESP2
    Video adapter Mobile Intel (R) 945GM Express Chipset Family
    Volume of video of memory 128
    Problem Accelerated Graphics Port - it is inaccessible
    Frequency of hertz the screen 60
    Questions
    1) Accelerated Graphics Port - there is enabled if yes that that it is necessary to make that it became accessible.
    2) whether Frequency of hertz with 60 can be raised even up to 75.

    Hi
    I have noticed that on some Toshiba notebooks the screen refresh rate is fixed on 60 Hz.
    The display refresh rate is not important on the notebook screens.
    TFT matrix doesn't have such thing as refresh rate. It doesn't blink.
    TFT like all other LCD screens doesn't have refresh rate parameter, only reaction time.
    Your eyes are safe ;)
    Ps: As far as I know the AGP port is not available.

  • Updated iMac question -- is this the "main" refresh? or should I wait?

    I read that this might be a "minor" refresh until october-ish, when the 'main' refresh will take place. Having never owned a mac (I am trez excited), I'm wondering?? Thanks!

    I have no idea, you would need to contact Apple to find out. However if you did it would almost certainly invalidate your warranty.
    Last please do not threadjack. If you have a new question please start a new thread.
    Message was edited by: rkaufmann87

  • JFileChooser and date format questions

    I have a JFileChooser that currently works - I set the default directory and allow the user to select a file or enter a file name.
    I have been asked to modify this to prepopulate the file name field on the JFileChooser.
    How do I do that? It is not obvious which method to call to set the filename field.
    Also, the file name needs to be a timestamp "*yyyyMMddHHmmss*.dat"
    I tried creating the timestamp part with the following code, but it does not format as expected.
            String s = "";
            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddddHHmmss");
            try
                java.util.Date now = new java.util.Date();
                java.util.Date dat = dateFormat.parse( now.toString() );
                s = dat.toString();
            }What is wrong with this?
    Thanks.

    I don't do Swing and this is also not the subforum for Swing questions. It has its own subforum.

Maybe you are looking for

  • How to include new fields for output conditions

    Dear Gurus, I want to maintain the field "kunag" in output condition table.But it's displaying in allowed filedcatalog but at the time of creating condition table it's not showing there.Please advice me. Thanks Hari

  • Iphone Drivers?

    I can not find any driver on my computer, how do i install a driver for iphone?

  • Instant Alpha

    I'm trying to make the background of an image go away so that I just have the object in the image and the background transparent. Now, I tried in instant alpha in preview and this is what happens: I get these dotted lines around the giraffe. I then p

  • Retrieving the drop down value used in wdr_select_options for default

    Hello Experts, I populated drop down using the method add_parameter_field by using WDR_SELECT_OPTIONS component. Now my requirement is I need to default the value in some other parameter field based on drop down selection value.But the problem is WDD

  • Approvers name to appear at PR release strategy

    Dear gurus, I have configured the PR release strategy. In customizing, I assigned the Release Codes to the '(S) Position' Agent ID's. Everything is working fine. Here is the issue, my client would like to see the name of the person who is supposed to