Close file FileChooser

Hi. I have a rather interesting problem you guys might have some ideas for:
I have a desktop application that maintains a list of open resource files. The user can add or remove (i.e. open or close) any of those resource files at any time. But there is no display for that list of files anywhere in the app. It was easy using the JFileChooser to allow a user to open a resource file. However, I now need to provide a mechanism for closing those files.
I could just create a custom dialog box that shows a JList or JTree of the available components, but I'd like to use the JFileChooser, if anybody can think of any clean way to do so.
It's easy to filter the files to the list that is open. The only problem is that it strikes me as odd to have to navigate the to the directory of the file the user wishes to close in order to close it. Does anybody know of a way to use the JFileChooser to cause all open files, regardless of directory, to be shown at once, on a single list?
I thought I might be able to customize a FileSystemView, but I'm not sure if this is the right way to go about it.
Any thoughts?
- Adam

i want to save the content of JTextArea to file using
Menu i have followin code but it doesn't work
properly.Please describe the problem. What happens? What doesn' t happen? What do you expect to happen?
Kaj

Similar Messages

  • Now that I'm a paid up supporter Maybe you will fix Firefox and return "Close File" to File on the menu toolbar.

    I just degraded from Firefox 3.6 to 9.0.1 and found that one of the most useful tools is missing. On the Menu toolbar under File, "Close File" has been eliminated. Why? Why do I have to close the site I was looking at and go back to my Firefox home page and start all over? Why was "Close File" eliminated? It was one of the most useful tools in Firefox. I'm hoping I haven't gotten rid of the CD that has 3.6 install on it so I can upgrade to a great version of Firefox.
    Bob -
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
    You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
    Add code to userChrome.css below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    /* Always show menu entries with class="show-only-for-keyboard" */
    #navigator-toolbox menuitem[class="show-only-for-keyboard"]:not([hidden="true"]){ display:-moz-box !important; }
    </nowiki></pre>

  • How do I put a "close file" icon in the toolbar? I've searched for an hour to find the answer with no luck?

    How do I put a "close file" icon in the toolbar? There's an "open file" icon by default, but I cannot -- in spite of searching for an hour--find a way to put a "close file" icon in there?

    Toolbar where? What program? What system?
    Mylenium

  • DDE problem (close file)

    I use Oracle Forms 6 and DDE package.
    My dde peace of code work normal and fine, but problem is: How I can work with DDE without show word document on the screen or close that document which is show on screen?
    and later unlock that file so I can cut it or delete it?
    Another question is: is there any way to formating my word template without make some macro (for ms word) in VB?
    thanks and best regards.
    mret

    Are you sure the error occurs at Close File VI?  You should put your code in highlight execution mode (the light bulb on the block diagram) and watch your error cluster wire, it will show the error in red text when it occurs, this info may help to pinpoint the issue.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Tab through the Close File dialogue window buttons?

    In the past when closing a document or file (any app) I could Tab through the different 'Don't Save', 'Cancel' & 'Save' buttons on the close file dialogue window. And also hit the spacebar to select the highlighted button.
    But not any more. It could have stopped working when I deleted items (cleaned up?) from my home Library folder, or maybe it happened after the 10.4.10 update?
    Does anyone else have the same problem? (Can you Tab through them & hit the spacebar to select the highlighted button?) Does anyone know how to fix it?

    Select "All controls" at the bottom of the "Keyboard Shortcuts" pane of "Keyboard & Mouse" System Preference. Control-F7 will also turn it on or off.

  • Close File step.

    I'm using Automator to open a batch of Movies and recompress them using the "Most Recent Settings". It works great, except for the fact it leaves every movie file open when done. Is there a command I can put in to Close File, "Don't Save" to get rid of each source movie when it's done?
    Thanks!

    You may want to try the Quit application action. This should quit the quicktime player and close the open files.

  • Close File

    Hi,
    I am getting error in Close file .
    For more clarification i am attaching the word document and sample code
    Attachments:
    Bharath_Query.doc ‏179 KB
    Write_File.vi ‏44 KB

    You get an error because your string array is empty and thus the loop thus runs zero times. This means that the output tunnel for the file reference is not a valid reference and the close fails.
    One possible solution would be to feed the file reference via a shift register. Shift registers output the input unchanged if the loop runs zero times while a plain output tunnel will output the default data for the datatype.
    Also:
    your sequence structure has no purpose.
    Your string array should be a control, not an indicator. Now you longer need the local variable.
    This is all you need:
    Message Edited by altenbach on 12-17-2007 11:10 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    WriteNoError.png ‏8 KB

  • Lightroom crashes after photoshop closes file

    I'm having an intermittent problem.  Here's what happens:
    1) Right click on .DNG photo and do edit in photoshop.
    2) Do my photoshop work, which will include usually 10 layers and be around 300 MB in size
    3) save and close file
    4) go back to lightroom to do more work, and it crashes as soon as I switch to it.
    Then, if I run lightroom again, it will crash.  In fact, it will not come back up unless I shut down photoshop.  Then it will come back up.  Sometimes the file I was working on is in the catalog, other times it isn't and I have to add it.
    This happens to 5-10% of the files that I edit in photoshop.
    My system is CS4, Lightroom, Windows 7.  All 64 bit.
    I had this same setup with Windows XP, but 32 bit and never had this happen.

    I am having the same problem in CS2 running XP PRO - Just started a couple of weeks ago. I have updated all drivers, cleaned the registry, reinstalled
    LR 2.6 . Everytime I edit an image in Photoshop, Lightroom will close and give me the " I'm sorry, but Lightroom must close"... It had worked for over a year and all of a sudden this starts. Everyone tells me it's a driver or Windows update, so I went through and updated everything I could and it still crashes.
    I have spent many hours and dollars to this point and I reall need to get this fixed. If anyone can figure this one out, I would REALLY appreciate it!

  • InDesign won't close files

    Hallo everybody,
    I'm new her at InDesign-Scripting-Forum, but I have a great problem, and hope there is somebody out who can help me:
    My problem is that InDesign won't close files which have been opened.
    Just a little Javascript (I have reduced it to the minimum):
    var myFile="1.indd";
    // Open the file
    var myDoc=app.open(File(myFile));
    // Close the file
    myDoc.close(SaveOptions.no);
    if(app.documents.length > 0)
            alert("Still " + app.documents.length + " files opened");
    If this script starts from InDesign Javascript Panel, there are no problems or errors.
    InDesign will open the file (1.indd), and closes the file, and no alert will appear.
    But.... if the Javascript ist copied to the InDesign "startup script" folder, so that InDesign should
    run this script on InDesign Startup,the alert will appear.
    If you are running the script in a loop, just like working with 10 files of a current directory,
    InDesign will show alert of 10 opened files at the end.
    So.. at the end of the script, I want to move the (opened and closed) file to another directory.
    But when InDesign "says" the file is opened, I cannot move or rename the file.
    (It is only possible when running the script manually by the Javascript Panel).
    Can anybody help me, so that I can close the file, or that InDesign will close the file
    when running as a "startup-script"?
    Thanks very much.
    Martin.

    I have 8 MB of RAM. I restarted all the software, but not my computer.
    It is in the left column that I am having the problem.
    There was a previous discussion thread where a user on Mountain Lion was having the same issue, but it wasn't resolved in that discussion thread either.

  • Photoshop does not close files and the program does not quit.

    I have been on the phone with tech support for over an hour. Photoshop does not close files and the program does not quit. I am on a Mac and I am using Photoshop CC 2014.

    Have you tried uninstalling Photoshop CC and re-installing? Another thing to try is to remove all Photoshop CC plist files. There is also the Cleaner tool:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Missing buttons at bottom of Audio window in Captivate v6. Can't save or close files .

    Missing buttons at bottom of Audio window in Captivate v6. Can't save or close files .Buttons also missing in Edit mode.
    Any thoughts as to might of happened? I'm using Captivate 6.0.0.199. Until a week ago this functionality was working fine.

    Captivate 6.0.0.199 had several issues. Upgrade to 6.0.1.240 from here and check.
    https://www.adobe.com/support/captivate/downloads.html
    Sreekanth

  • Regression from CoolEdit: Can no longer close file if playback is on.

    Hello,
    I open a bunch of files.
    I'm jumping around.
    I'm listening to selections.
    I'm copying selection ranges to new files.
    I'm making a whole bunch of cuts.
    I'm closing files and cuts I no longer need.
    I'm jumping, listening, closing. editing, jumping, copying. Doing stuff.
    I'm flowing.
    You've inserted a new step right into this middle of this workflow which accomplishes absolutely nothing except to slow me down:
    I can no longer right click a file and press "Close Files" if playback is engaged.
    The "Close Files" context menu entries is now grayed out for no reason.
    Who cares if playback is on? I want to close the file. I just *listened to something in it* to find out that it's one I don't need anymore.
    best regards,
    - Pzyn

    http://forums.adobe.com/community/labs/audition/ for all AA4 Mac public beta requests/bugs

  • I searched -- honest:  Audition3 insists I close files before it will export a mix.  Make it stop !!

    How can I make it stop doing this?
    I have maybe ten or 14 tracks in a 3-minute song.  I go to export a mixdown and Adobe says no, it's clogged up, I have to "close files" first.
    Apart from not having a clue what that means, how can a three-minute song made of 10 tracks overload the temp memory which is by the way 256 megs in memory and a whole 80-gig separate dedicated hard drive?
    I mean, sorry if I'm not the polite Adobiite here but what's wrong here?
    E

    Things are not always what they seem but yes this can be very frustrating.
    Are you saying that if you open this session and then try to export a mix (without doing anything else) AA3 still insists on closing files because of temp memory?

  • NI_readwriteAVI.dll does not close file reference

    The NI example code for reading an avi file to imaq does not properly close file references in Windows 2000. Is there a way to correct this bahavior?

    Whoops...Operator error. It does close its references. Sorry.
    "sachsm" wrote in message
    news:[email protected]..
    > The NI example code for reading an avi file to imaq does not properly
    > close file references in Windows 2000. Is there a way to correct this
    > bahavior?

  • Acrobat Pro 9 Very very slow to open and close file

    Hi all. I have several pc where they are praticly identical. I got one pc qhere acrobat 9 pro where installed and when I try to open a pdf it get too much time.
    I already reinstalled it and no effect. When I open a pdf it get 40 - 50 % of cpu and 50 - 60 mo in the ram ( normal usage i guess ). Nothing was running in the same time.
    To open a pdf it can take up 30 sec ( realy too long for a simple one page pdf ).
    I'm running on windows xp ( P 4 3.2 ghz with 2 gig of ram )
    I have no other idea what to try next ...
    Ty for your help

    >>> Have you checked the size of your organizer90 file in the user's profile?  That causes issues for us, at least when closing files.
    This was the answer for me. I went to C:\Documents and Settings\MyName\Application Data\Adobe\Acrobat\9.0 and deleted Organzer90.  It was 29 MB!  Then I opened an Acrobat document, and then closed it.  (This action recreated a new Organizer90 file (9KB)
    Now each time I open an Acrobat document they load and close much more quickly.
    The Organizer90 file seems to be a SQLLite file that tracks a long history of every PDF I've viewed over time.  I'm not sure what it is used for, but I'm happy to trade it for faster closing PDF files.
    Hope this helps others...
    -Dave

Maybe you are looking for

  • How can I remove the Quick Launch area from a SharePoint site

    We have a SharePoint site that includes a Quick Launch area by default.  We know how to add and delete items from the Quick Launch area but how can we delete the Quick Launch space (this would shift the main body portion over to the left and taking o

  • XML string from Java

    Hi I have requirement in which i have a jsp that i use to get information from users. I need to convert the info to XML data into a String , whihc i later use to pass as messages using AQ. I also have to, at a later point retreive the data from the X

  • Publish to Apex

    Hi all, In 1.5.1, I could not get the Publish to Apex functionality to work at all. Seems to work in 1.5.3 OK. However, I can get the popup menu choice to show up only when I am connected to my local instance. If I create a connection to the Apex "pa

  • Loyalty Campaigns

    Hi Experts, I've created Loyalty Campaign/Porgram and R R and released all. Using Loaylty IC Agent role I'm not able to see the Loyalty Campaigns. Can any one pls let me know how to display all the loyalty campaigns which are released as part of Loya

  • WebLogic - how to get installed JCA adapters

    Hi, I am not sure if this is the right place to ask but I couldn't find any other appropriate forum, so I'll just drop my post in here. I would like to know how I can get the list of installed JCA adapters from my application which deployed onto WebL