How do I change this string  Please someone help this newbie :)

Hi All
I have a string which is a list of file in a folder. I am putting this list into a submenu. The files are formated like this
Jesse_Smith_08_08_2001
Jackie_Test_04_04_2000
I would like to view them like this
Jesse Smith 08.08.01
Jackie Test 04.04.00
How can I do this
PLEASE HLEP ME
I have spent 2 days trying to do this
Craig

Thanks for the code tolmark
Can I ask one more this?
How can I integrate your code into this code ??
private void addItem(JMenu menu, char a)
    //Get file names from folder "Epod Configuration/Orders To Upload/"
    File dir = new File("Epod Configuration/Orders To Upload");
    File[] files = dir.listFiles();
    for (int j=0; j < files.length; j++)
      String trim = ""+files[j];
      int ndx;
      if ((ndx = trim.lastIndexOf('/')) != -1) trim = trim.substring(ndx+1);
      if (trim.charAt(0) == a);
      String s = trim;
      int idx = s.lastIndexOf('.');
      // remove extension
      if (idx != -1)
        s = s.substring(0, idx);
      System.out.println(s);
        JMenuItem mi = new JMenuItem(s);
        menu.add(mi);
  }sorry to have to ask but I just can't seam to do it .
Thanks
Craig

Similar Messages

  • I disabled Java script, went back onto my email, found I need it and cannot figure out how to re-enable it. Please, someone, help! Where do I find it on Linux?

    Cannot find the menu I had pulled up to edit Java script, please, let me know where it is.

    See:
    * http://kb.mozillazine.org/Javascript#Enabling_JavaScript

  • My fonts are changing in iWed after I publish. I need step by step instructions on how to go to my third party server and clear out all of my files and reload my whole website, the solution I saw posted by another. Please someone help me on this. Urgent

    My fonts are changing in iWed after I publish. I need step by step instructions on how to go to my third party server and clear out all of my files and reload my whole website, the solution I saw posted by another. Please someone help me on this. Urgent

    If your fonts are changing when viewed on other computers - epecially those running windows - you need to look at using web-safe fonts...
    http://www.iwebformusicians.com/iWeb/Fonts-Colors.html
    Also make sure you clear your browser cache before viewing you published files.

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • My itunes library is empty but i want to upgrade my ipod without losing my music. how can i do this? please someone HELP!!!

    i recently got a new laptop so my itunes library is empty but i want to upgrade my ipod without losing my music. how can i do this? please someone HELP!!!

    but i got music from my old laptop and my little brothers laptop so basically its no way i can take whats already on my ipod and put it on my computer and drag and drop it to my new itunes library

  • HT5621 I bought my iMac from someone. Everything was changed over to my name however when I try to update programs it only shows the old users apple ID and I can't update. How do I change this so I can update the applications and have everything fully und

    I bought my iMac from someone. Everything was changed over to my name however when I try to update programs it only shows the old users apple ID and I can't update. How do I change this so I can update the applications and have everything fully under me?

    The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You — not the previous owner — must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    1. You don't own another Mac.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. For early MBA models, you may need a USB optical drive or Remote Disc. You should have received the media from the previous owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    2. You do own another Mac.
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can boot from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    Once booted in Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    After partitioning, quit Disk Utility and run the OS X Installer. You will need the Apple ID and password that you used to upgrade. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    3. Other issues
    If you see a lock screen when trying to boot from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another authorized service provider to be unlocked. You may be asked for proof of ownership.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information.

  • Hi have changed my email but when trying to purchase from I tunes it is still linked to old email how can I change this please

    Hi I could not remember the answers to my security questions so called apple support they advised there was a problem with yahoo email and advised I set a new emai which I have and it was verified but when I now try to purchase from I tunes it still comes up with my old email how can I change this so it links to my new email please thanks in advance for any help

    The best option is to sign out of all accounts http://support.apple.com/kb/HT5796. you will have to remove all of the purchases or the old yahoo account will keep coming up.

  • When asking siri for directions home it gives us someone elses contact info. how do i change this?

    when asking siri for directions home it gives us someone elses contact info. How can i change this?

    settings - general - siri - my info -

  • I recently changed my internet service provider and my e mail address. I updated my iTunes account with the new e mail. Now I cannot get updates on my devices, because the login box on each still contains my old e mail. How can I change this please?

    I recently changed my internet service provider and my e mail address. I updated my iTunes account with the new e mail. Now I cannot get updates on my devices, because the login box on each device still contains my old e mail, and I do not know how to change this How can I change this please?

    Try tapping on the id in Settings > iTunes & App Stores on your devices (Settings > Store if they aren't on iOS 6+) and then log back in and see if that 'refreshes' the account on them.

  • Hi When im opening raw files. They open in a small tile on the dest top. how can I change this please.

    When Im opening raw files in Photoshop They open as a small tile on the desktop.
    How can I change this?? please help its very frustrating!

    Mac OS X: Double-Clicking a File Opens the Wrong Application - http://support.apple.com/kb/TS2291

  • Dear Friends...... I have an ipad 2 32gb with wifi and 3g enabled sim..... i bought it second hand .... and now if am going to download any games it is showing me an email id and asking for its password... please guide me how can i change this setting

    Dear Friends...... I have an ipad 2 32gb with wifi and 3g enabled sim..... i bought it second hand .... and now if am going to download any games it is showing me an email id and asking for its password... please guide me how can i change this setting to my email id and password

    Tap on the id in Settings > Store and log out of it and then login with your id. Any content already on the iPad will be tied to the previous owner's id and it can't be copied or transferred to your id - so it's probably best to do restore the iPad back to factory defaults and start as from new with it : Settings > General > Reset > Erase All Contents And Settings

  • I have two options in my apple contacts. And I chose to not expose my hotmail contacts to limit the length of my list. Now whenever I add someone they get saved to my hotmail contact list, rather than iCloud. How do I change this?

    I have two options in my apple contacts. And I chose to not expose my hotmail contacts to limit the length of my list. Now whenever I add someone they get saved to my hotmail contact list, rather than iCloud. How do I change this?

    Settings>Mail,Contacts,Calendars>Default Account (in the Contacts section), set this to iCloud.

  • My phone was synched up to someone else's computer how can I change this?

    My phone was plugged into someone eles's mac book pro and now their apple id is on my phone.  How can I change this without losing everything on my phone (photos, apps, music, etc.)?

    Re-sync it with iTunes on your computer.
    Any apps and other iTunes content transferred from the other computer will be erased first, which is not your iTunes content.

  • The new tab behavior is driving me nuts. It keeps re-centering on tabs nearest the start of the list when I move a tab. How do I change this?

    The new tab behavior is driving me nuts. It keeps re-centering on tabs nearest the start of the list when I move a tab. How do I change this?
    I don't want to download an app. I would rather add a new string in about config or just change of the ones in there to false. It's making my work life rather difficult, to be forced to go all the way back to the end of my list after moving one tab just to have to do it again. I mean it's to the point where I might consider changing browsers if they had tab scroll bars.
    Edit: At this point I will download any app. Please make this stupid feature stop.

    The result of setting up that code will do exactly as you described: the tabs will be crowded together. I had not noticed any change in behaviour of Firefox with tabs because all the tabs are crowded together, so they cannot scroll, and I very seldom move tabs.

  • My messages use my email and not my phone number on my mac. How do I change this?

    I use the messages app on my computer quite frequently and whenever I send out a message to a friend's phone, they receive it as my email and not my phone number. I know there is a way to change this because my friend does it all the time on her computer but we see it as her number. Please someone help me fix this. Thank you.

    Hey jumnalailaa,
    Great question. This can be accomplished if you have an iPhone that is registered with the same Apple ID in iMessage.
    The following article outlines how to link your phone number for use in OS X.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    After doing so, you can change the default account (send messages from your iPhone number by default) in Messages > Preferences > Accounts > iMessage > Start new conversations from
    Thanks,
    Matt M.

Maybe you are looking for

  • R/3 tables and data sources

    hi guys,                      i am trying to find r/3 tables for plant maintainance data sources and project system data sources i am trying it out in help.sap.com i am able to find r/3 tables information for 60% of data sources only how can i find t

  • Return delivery with via delivery indicator

    I am trying to post return delivery through MIGO transaction, with selecting ' via delivery' indicator. I am getting an error - data for creating a delivery is incomplete (Customer). I am selecting this indicator first time so that I can get delivery

  • HT4972 iTouch 4gen w/iOS 6.1.5 + Bluetooth pairing(?) issue. It won't.

    I have an iTouch 4generation iOS 6.1.5 - latest software per iTunes updater. Can't get bluetooth to pair.  Sees the OontZ XL speaker (on the screen), but won't pair up. any hints?  Thanks

  • Sun server datacenter migration

    Our compnay is planning to migrate old Solaris(8/9/10) Servers to new data-center, have to physically re-locate few servers after shutting it down... How i can make sure all will be up fine after re-location, what if something goes wrong? what backup

  • Windows XP does not recognise USB devices after installing itunes 7.2

    After downloading itunes 7.2 my PC no longer recognises my ipod nano (2G, 2Gig). Uninstalling itunes 7.2 and reverting to a previous version makes no difference. On top of this my PC no longer recognises my external USB 2.0 HDD. Uninstalling and allo