Most Recent Used File List in Menus

Hi,
Does anyone know how to create List of most recent used files and display it in the main menu?
Has anyone done that?
Currently, I am opening one file at the time and I have the last
path of opened file.
thanx !

Offhand, you'll have to do it the hard way. I don't think Swing or Awt provide a default JMenuItem(), MenuItem() that does the file list. Now that you mention it, it does seem like an interesting project to do.
You essentially need an array of the files, and for each file, create the associated menu entry, as in:
String entryName = files[ i ];
if ( entryName.length > 10 ) {
   entryName = entryName.subString( 0, 10 );
JMenuItem entry = new JMenuItem( i + ". " + entryName );
...and define the event listeners however appropriate for your application.

Similar Messages

  • Most Recent Used File List

    Hi,
    Does anyone know how to create List of most recent used files and display it in the main menu?
    Has anyone done that?
    Currently, I am opening one file at the time and I have the last
    path of opened file.
    thanx !

    You could recurse over the file system, creating a bunch of File objects, which you'd stick into a List. Then create a comparator that sorts the objects by File.lastModified() value, descending.
    Then you'd have a sorted list, from which you could easily take the N most recent files.
    Of course, the recursing would take a while. You may want to put creation and/or updating of this list, into a low priority thread.

  • How do I edit the Screen Sharing 'Most Recently Used' files list ?

    I have recently added a mac mini to the network at home, and will be using this as a headless device. I am connecting remotely (using screen sharing) which works well. I have set the Sceeen Sharing icon to remain permanently visible on the dock, ad by right clicking, I get a list of the most recently used shares.
    The trouble is, that some of theses shares no longer exist, and tghere is also some duplication.
    I would like to edit this list, but cannot find out how to do it.
    Can anyone help please ?
    Thanks
    Geoff
    PS - The same principle applies to a number of other programs that retaim n MRU lst on their dock icon - how can these be edited.

    This doesn't apply to me anymore.

  • Most recently used documents

    How do I delete the MRU files within StarOffice 6.0? Is there a way to configure the program so that a file's location and file is not displayed under the "Files" menu?

    Hi
    The history of loaded URLs (ie the most recently used documents) are saved in the file "Common.xml". This file can be found in the directory:
    " \StarOffice6.0\user\config\registry\instance\org\openoffice\ Office\ "
    To delete these entries, load the file in a text editor and find the "<History>" entry. Delete all lines in the file up to the entry "</History>" (i.e., all entries between "<History>" and "</History>").
    This will also delete all entries in the URL history as well as all entries in the picklist (the list of the most recently used files found in the File menu).
    Important:
    This procedure involves manual intervention to the configuration of StarOffice. It can occur that if the wrong entries are deleted, StarOffice will no longer be able to function correctly. Please remember that all manual intervention to the configuration files is the sole responsibility of the user. In this particular case, any mishaps that may result to the program cannot be supported or guaranteed.
    If the above does not work, please let us know. Thanks!

  • I upload a podcast each week using Podcast Maker. When I search the iTunes Store to determine if the most recent one is listed all the podcasts are in random order. This week's is

    I upload a podcast each week using Podcast Maker. When I search the iTunes Store to determine if the most recent one is listed all the podcasts are in random order. This week's is #14; last week's is #1. Any ideas how to correct this? The odd thing is that when you try to subscribe to the podcasts, they are listed in the proper order.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • How to deactivate the Most Recently Used List in Adobe Reader?

    Hello,
    how can I deactivate the "feature" of last used file list.
    In our firm it is not alowd to see which document was used last time on a computer/login.
    A sheduled erase at the registry is not a functional way to deal with the problem.
    s. Peter

    You can't COMPLETELY remove it, but you can reduce it to one (1) item. Under Preferences>Documents
    1 is the minimum and 10 is the maximum. Hard coded, no way to expand or reduce these limits.
    The ONLY other option is to disable the "welcome screen" altogether under Preferences>General

  • Clicking on Dock icon only brings most-recently-used window to front

    In Leopard, clicking on the iChat Dock icon would bring all iChat windows (contact lists, chats, etc.) in front of other open applications, and give focus to the most recently used iChat window.
    After installing Snow Leopard, clicking on the iChat Dock icon only brings the most recently used iChat window to the front and gives it focus -- other iChat windows remain behind other application windows (if that is where they were before).
    Is this just me? My friend tells me that it still behaves like it did in Leopard on his computer. Any ideas?

    In the First Post your Specs said Snow Leopard, now they say Tiger
    Sorry, I didn't realize it wouldn't remember that setting for me -- I am running Snow Leopard.
    With Chax in Leopard/iChat 4 an extra item was added to the Window menu of iChat that says "Always On top"
    No, this is not what I was looking for. I have another machine with Leopard, and it does not have Chax -- iChat windows are not always in front, but they all come to the front when clicking on the Dock icon.
    I don't use it on the Buddy List as you can set it on Any iChat window.
    What do you mean, "you can set it on Any iChat window"? You mean the Chax setting, or something else?
    Are any Minimised to the DOCK ?
    No, none are minimized to the Dock.
    Chax does not work in iChat 5 and may be the cause of the issue.
    There is a beta version of Chax for iChat 5.
    I would delete Chax and then the com.apple.ichat.plist to remove any thing in it that refers to Chax and then relaunch iChat.
    I deleted Chax and every Chax and iChat plist, then restarted my computer. The problem did not go away -- still, only one window comes to the front when I click on the iChat Dock icon -- the others stay behind other windows.

  • Will Not Open To Most Recently Used Folder

    I figured out how to save in the same file, but PS still opens some default folder beginning with "THIS PC", instead of the most recently used folder. It should open to the most recently used folder. How do I set that?

    none than I know of.
    Of course, you could always make an Apple Script as an app (that you could place next to the finder icon on the dock for ex) that would do it, but that would require programming skills.

  • Organizer: Most Recently Used Tags?

    I'm running PSE8.
    Is there a facility in the Organizer that keeps the most recently
    used tags available in a handy to reach location?
    For example, I'm tagging some photos and one of the tags I'm using
    a lot is near the top of my list, the other near the bottom.
    Is there a place that Organizer would show me the last nn tags
    that I've used?
    Thanks!

    randyw57 wrote:
    I'm running PSE8.
    Is there a facility in the Organizer that keeps the most recently
    used tags available in a handy to reach location?
    For example, I'm tagging some photos and one of the tags I'm using
    a lot is near the top of my list, the other near the bottom.
    Is there a place that Organizer would show me the last nn tags
    that I've used?
    Thanks!
    No such feature

  • Most recently used apps?

    On the iPad (I don't know about the iPod Touch or iPhone), when you double click on the Home button you get a list of the "most recently used apps".
    When an app appears in this list, how much memory is it taking up if it is not the current app?
    Is it in the list to speed resumption of the app when you want it?
    Is certain program data holding the last state, or is it simply a list for my convenience?
    I have pressed & held until the icon "jiggles" and then pressed the '-' to remove it from the list.
    When returning to the app, it is in the same condition I left it.

    I found that link right after I posted. The few sentences I quote still leave me assuming a few things.
    Quote from link:
    When a user leaves an app, it’s put into the suspended state instead of closing it. The apps are held in memory and their process kept alive, but are given no CPU time. You can think of them as cryogenically frozen, they still exist and are alive, but can’t do anything until defrosted....
    The answers I assume:
    1) If they're in the list, they're being held in memory, but IOS will purge the oldest if needed.
    2) If an app is in memory then load time is 0.
    3) --mute--
    4) If the app retains its status of course it will come back where I left it; only a little bit sooner if it was in the list.
    I think I've got it. Thanks.

  • Recently Used Workbook list

    Hello,
    Can anyone tell me why my "Recently Used Workbook" list is empty in relational Discoverer 10g. We are using version 10.1.2.0.2. Any assistance would be greatly appreciated.
    Thanks,
    Carl

    Hello,
    Can anyone tell me why my "Recently Used Workbook"
    list is empty in relational Discoverer 10g. We are
    using version 10.1.2.0.2. Any assistance would be
    greatly appreciated.
    This is a BUG in Discoverer but there is a workaround.
    Edit the $ORACLE_HOME/discoverer/.reg_key.dc file and find this location:
    [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\WebDisco 10\Default\Application]
    Under this, put this:
    "MRU List Length"=D4:4:05,00,00,00
    It should be put just before this line:
    "MRUEnabled"=D4:4:01,00,00,00
    The MRU Enabled is in the Pref.txt file but the length of this list is default to 0 and it is not in the pref.txt. Each user can change their MRU List Length but that it is at the user level, not the server level. By adding the MRU List Length as I have shown above, all users will default to showing the last 5 Workbooks.

  • Clicking the Stamp tool doesn't select the most recently used stamp - Acrobat X

    My issue is pretty much what the title says. Clicking the Stamp tool doesn't select the most recently used stamp. According to the Help screens and training videos, it should. I've checked Edit > Prefernces and could not find a setting that adjusted this behavior of the Stamp tool. Does anyone know what can be done to fix this? BTW - It's not just my installation of Acrobat X. Other users at my firm are having the same issue. The OS is Windows 7. Users have administrator rights. Thanks in advance.

    Hello Abhilasha,
    So, what your saying is that this function, the ability to select the most recently used stamp by clicking the stamp tool, has been removed, in spite of the fact that Acrobat's Help pages says it can be done (Using Acrobat X Standard > Collaboration > Commenting > Apply a Stamp > Step 1 > Second bullet). I wish they would put it back. It was quite handy.
    Perhaps I should adjust my request. Do you (or anyone else) know of a way to use the same stamp several times in a row without having to choose the stamp from the stamps list? For example, if you needed to put a check-mark stamp in several places in a document, it would be a pain to have to go back to the list each time. Is there perhaps an undocumented feature (maybe holding down a particular key while using the stamp) that would allow for multiple stamping?
    Thank you,
    Phillip

  • Disable recently used documents list in Acrobat X?

    Anyone know if there is a way to disable recently used documents list in Acrobat X?

    You can reduce the file count to 1 (under Preferences) but cannot turn it off completely.
    For info on clearing the list manually, see this post:
    http://acrobatninja.blogspot.com/2010/11/clearing-recent-files-lists-in-acrobat.html

  • How to delete latest opened file in the recent opened files list?

    Does any one know if there is any api to modify the recent opened files list under the meun File->Open Recent File?

    There is not.

  • (Need Help) how to clear the recently opened file list on Flash Player 11?

    excuse me pals, may i ask how to clear recently opened file list under "File" tab on Flash Player 11 (the standalone player) ? i've tried to browse my registry but i can't find the solution (and i can't find the .mru files containg the list). my OS is Windows 7 32bit, i hope i can find solution here

    I found it in the Windows registry under HKCU\Software\Macromedia\FlashPlayer

Maybe you are looking for