Renaming a file in a filechooser

renaming a file in a filechooser -
Single click or right click on a folder of a JFileChooser allows you to edit the new file name ina textfield. When the focus is lost from the text field the folder name is changed to the older one. But after editing the file name in the textfield and press 'Enter' the folder or file is updated with the new name. Can anybody tell me if there is a way to make it work on loosing focus ???
Thanks in advance

This sounds like a bug from the install. I use Mavericks and do not have this problem. I suggest reinstalling: http://support.apple.com/kb/PH13871

Similar Messages

  • HT3775 I have a bunch of .MOD files I cannot play from our Canon video cam. I tried renaming the files as MPEG or MOV, I get the message "The document "001.MPEG" could not be opened. A required codec isn't available." Any advice on getting these to play?

    I have a slew of .MOD files I cannot play from our Canon video cam. I tried renaming the files as MPEG or MOV, I get the message "The document “001.MPEG” could not be opened. A required codec isn't available." Any advice on getting these to play? Thanks!

    Try installing Perian or VLC. Some AVIs require a codec which simply isn't available for Mac OS X.
    (85018)

  • I want to remove what Skype identifies as "Tell you friends what you are feeling . . . ."  One person on the Skype community said I could rename a file, but he thought I was on a PC.  I am using OS10.7.4, and Skype is functioning OK.

    One person on the Skype community suggested: 
    Re: disable mood history
    17-09-2011   02:04                 
    Actually it is possible to delete your own mood message updates but it requires an unsupported ”fix”.
    You need to delete the keyval.db database file. In order to be on the safe side, it’s best just to rename this file, so you can always get it back if something went wrong.
    You can find this file by entering %appdata%\skype in the Start Run/Search box. This will open the Skype User folder. Locate there the folder with your Skype Account name and the keyval.db file will be there. You must stop Skype from running on your computer before deleting/renaming this file. Next time you start Skype a new version of this file will be recreated and all mood message updates will be removed from the home page.
    However, this guy didn't know I was on a Mac.  I phoned Apple to see if they could show me how to get into the Skype file apparently on my computer, and they couldn't find it. 
    Anyone out there have any ideas?  It doesn't seem as if I have any Skype files on my computer.  If I need to make file changes via "the terminal," can someone tell me how to do this?
    Gretchen

    Hello,
    I had the same problem with finding this file.
    There's no such file in Mac OS X version of Skype. But there's a directory for your Skype user account in /Users/%current_user_name%/Library/Application Support/Skype/
    try:
    quitting Skype
    renaming old folder
    signing into the Skype

  • How do i rename multiple files at the same time on a MAC?

    I have been a mac user since 4 years now yet i cannot figure out how to rename multiple files in mac. In Pc i used to slect all and rename one e:g "ab.jpg" and the restwould be "ab (1).jpg" automatically. but in the mac its way too hard to do this on the automator. ..
    please advise asap!
    ~haniah

    You can do it with Automator.
    http://www.automator.us/examples-01.html
    Or with a utilities like these:
    http://www.publicspace.net/ABetterFinderRename/
    http://renamer4mac.com/
    You can also do it using the Terminal command line.
    Matt

  • How do I import old FCP projects that have mysteriously changed to Linux Executable files?  Is it as simple as renaming the files with the.fcp extension?

    I had some FCP projects on an old G3 tower that I finally want to finish. I was able to grab everything, media, etc. to my macbook pro but all of the Final Cut Pro actual movies/projects have turned into "linux executable files" that FCP X won't import.
    I tried googling this issue but didn't really see any good answers. Would it be as simple as renaming the files with the .fcp extension?  I can't recall if my old version (really old) of FCP saves projects as .mov or .fcp files, but I'm assuming I'm not the only person this has happened to.
    Thanks for your help!

    I had some FCP projects on an old G3 tower that I finally want to finish.
    What version of FCP was this? The project files can probably no longer be opened in the newer version of the OS. You could try adding the .fcp suffix, but I don't think it will help for this. Projects files are .fcp.
    Regardless of the version, no legacy FCP projects will import into FCPX.
    Media is a different matter. These are probably QuickTime .mov files. If these are appearing as Unix ececutables, they're probably not recoverable either.

  • Can you somehow use Lightroom to rename RAW files?

    Okay let's say in one folder on my hard drive I have three RAW files: _DSC0001.NEF and _DSC0002.NEF and _DSC0003.NEF. Now let's say I have reformatted my memory card so my camera will once again start labeling new images with _DSC0001.NEF.
    So let's say now I go out and shoot three more RAW files: _DSC0001.NEF and _DSC0002.NEF and _DSC0003.NEF.
    If I try to transfer these brand new images into my original folder there will be some duplicate naming which you can't do.
    What I have been doing is going into the new folder that holds the new three images and renaming them: so I change _DSC0001.NEF to _DSC0004.NEF and I change _DSC0002.NEF to _DSC0005.NEF and I change _DSC0003.NEF to _DSC_0006.NEF.
    Instead of me having to manually rename each photo I was wondering if I could import these new photos into Lightroom and then tell Lightroom to export these RAW images but starting at the sequence _DSC0004.NEF...and so forth.
    I mean I can't have a folder that has this: _DSC0001.NEF and then _DSC0001.NEF.
    I hope I have made myself clear.
    Or am I doing this all wrong?
    And I would want Lightroom to export the original, unedited RAW file. It's just that I would be using Lightroom to rename them to keep proper sequencing.

    This is the Help page you should read: http://help.adobe.com/en_US/Lightroom/3.0/Using/WSCF140965-2440-4b65-9F88-AA0283034B11.htm l
    It can take a little getting used to but once you have you will find it quite easy.
    By the way I rename my files with the date first (GW20110514-12345.xxx) which may be useful to you.

  • Can't rename a file using File.renameTo(...)

    Hi,
    I have a servlet, RenameFile, that receives audio file via HTTP Post and writes it to /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav. Then it creates directories under /alert_messages directory based on the timing parameters that it get. Finally, it renames /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV. RenameFile runs fine when it runs by itself (ONLY one Tomcat, jakarta-tomcat-4.1.30, is running). However, RenameFile fails to rename the /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV when it runs in a Linux box that jboss-3.2.1_tomcat-4.1.24 is also running. In this box, TWO versions of Tomcat are running at the same time. I set the /alert_messages directory with �chmod �R 777� and run jakarta-tomcat-4.1.30 as tomcat user. RenameFile fails the rename operation. But, it creates the /alert_messages/2005/06/22/22/00/ directories.
    It seem like RenameFile can create directory but can�t create file in the /alert_messages directory when both version of tomcats are running at the same time.
    Can it be due to both the jakarta-tomcat-4.1.30 and the jboss-3.2.1_tomcat-4.1.24 versions are running at the same time in one Linux box?
    Can this be Jboss prevented the operation?
    I did not receive any io exception!!!
    Any help in this issue is greatly appreciated.
    Debug listing from the RenameFile;
    - originalFilename: recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.toString(): /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.getName(): recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.length(): 122986
    - file /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV
    - file NOT renamed /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV
    File Listing in the /tmp directory create by RenameFile;
    -rw-r--r-- 1 tomcat tomcat 122986 Jun 22 07:33 recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    Directoy Listing in the / directory with �ls �la�;
    drwxrwxrwx 3 tomcat tomcat 4096 Jun 22 07:28 alert_messages
    Directory created by the RenameFile with �ls -la /alert_messages/2005/06/22/22/00�;
    drwxr-xr-x 2 tomcat tomcat 4096 Jun 22 07:33 .
    drwxr-xr-x 3 tomcat tomcat 4096 Jun 22 07:33 ..
    Out put from catalina.out;
    !!!!! Can Read the old File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Write the old File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Not Read the new File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Not Write the new File !!!!!!!!!!!!!!!!!!!!
    !!!!! renameTo return false !!!!!!!!!!!!!!!!!!!!
    Code That rename a file:
      public synchronized String renameAlertMessageFile(String oldFileName,
                                String newFileName)
                throws SecurityException, NullPointerException
        File oldFile = null;
        File newFile = null;
        String result = null;
        StringBuffer myNewFileName = null;
        boolean renamed = false;
        try {
          int indexStringValue;
          int newFileLength;
          int indexOfPeriod;
          int indexOfLastUnderScore;
          int lengthOfExtension;
          boolean  Contin = true;
          String sNumber = null;
          String indexString = null;
          myNewFileName = new StringBuffer(newFileName);
          oldFile = new File(oldFileName);
          newFile = new File(myNewFileName.toString());
          if (oldFile.canRead() == false) {
            System.out.println(" !!!!!  Can Not Read the old File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Read the old File !!!!!!!!!!!!!!!!!!!!");
          if (oldFile.canWrite() == false) {
            System.out.println(" !!!!!  Can Not Write the old File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Write the old File !!!!!!!!!!!!!!!!!!!!");
          if (newFile.canRead() == false) {
            System.out.println(" !!!!!  Can Not Read the new File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Read the new File !!!!!!!!!!!!!!!!!!!!");
          if (newFile.canWrite() == false) {
            System.out.println(" !!!!!  Can Not Write the new File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Write the new File !!!!!!!!!!!!!!!!!!!!");
          renamed = oldFile.renameTo(newFile);
          if (renamed == false) {
            System.out.println(" !!!!!  renameTo return false !!!!!!!!!!!!!!!!!!!!");
        } catch (NullPointerException ex) {
          // Throw the same exception so that the caller may catch the
          //   exception and log the error
          System.out.println("NullPointerException For The New Dest File Name");
          ex.printStackTrace();
          throw ex;
        } catch (SecurityException seEx) {
          System.out.println("SecurityException For The New Dest File Name");
          seEx.printStackTrace();
          // Throw the same exception so that the caller may catch the
          //   exception and log the error
          throw seEx;
        } finally {
          if (renamed == true)
            return myNewFileName.toString();
          else
            return null;
      } // End renameAlertMessageFile

    Hi,
    Thank you for replying to my message. The servlet has been running for me for the last 12 months. However, it was running by itself without the Jboss-tomcat running on the same box. Can this be the catalina.policy file in the jboss-tomcat version restricted the rename operation. We are not allowed to write file under the umbrella of J2EE. But the servlet did not run within Jboss-tomcat. This really gets me thinking that something is not working correctly. Perhaps tomcat did not has the permission to write on the /alert_messages directory, again it did created the subdirectories under the /alert_messages.
    Any idea of what is going on?

  • Kde 4.6.1, 4.6.2 widget-folderview, rename a file gives an error.

    I already submitted the issue on bugs.kde.org:
    https://bugs.kde.org/show_bug.cgi?id=270414
    Version:           unspecified (using KDE 4.6.2)
    OS:                Linux
    When i rename a file using folderview, the file is renamed, but an error is
    triggered.
    Reproducible: Always
    Steps to Reproduce:
    -place a folderview widget on the desktop
    -rename a file from 'oldname' to 'newname'
    Actual Results: 
    - see the error message: "The file or folder oldname does not exist."
    - see that the file has been renamed to 'newname'
    Expected Results: 
    Don't throw an unuseful error message, it is clear that 'oldname' does not
    exists anymore.
    ...but it seems that at least someone can't reproduce it on kubuntu packages
    ------- Comment #1 From Nikos Papas 2011-04-09 18:22:21 -------
    I cannot reproduce the error. Using KDE 4.6.2, 64bit, Kubuntu packages.
    Can somebody try to reproduce under arch please?
    Thank you very much!
    Last edited by kokoko3k (2011-04-11 10:59:19)

    I can reproduce this error.
    I tried renaming a file in the folder view, and renaming a file in a sub-folder off of the folder view.
    In all cases, I got the "does not exist" error, and the re-named file.
    Arch: 64-bit
    KDE: 4.6.2

  • I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview

    I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview shows the contents, I can't open the document (Powerpoint) and I can't move the document. I tried "Copy" and paste but it doesn't work. I tried "Share" with Airdrop and iChat, but the file is inaccessible. When i try to rename the file, it says the filename is too long.
    When I try to open it, it says the alias is not good, and asks if I want to fix the alias. I'm afraid to do that and lose all access to this document.
    Right now, it feels like a ghost document - it is on the computer intact, but it is in an undisclosed location and inaccessible.
    Please help!!

    I was able to resolve this by repairing permissions, even though no permissions error was listed specifically for that file.
    I could also have recovered it through Time Machine, but I'm interested in knowing how not to have this happen again!
    I was afraid of rebooting and possibly losing track even of the ghost.
    I did not try EasyFind - I'll keep that in mind next time.
    Thanks for all the comments.

  • Can't RENAME a file like Windows can?

    Real easy. I just need to rename a file from this:
    A2Capital.jpg
    to this:
    a2capital.jpg
    I do this in Windows and of course every OS I have used since the 1990s at least. Why can't this be done in OS X 10.4.9?
    I am on a network drive of a Windows Server, if that makes a difference. The error I always get is
    The name a2capital with extension ".jpg" is already taken. Please choose a different name.
    Oh, come on. This is an easy one, right?
    It happens whether I click the filename or if I Show Info.
    Mac Pro Quad 3.0 Mac OS X (10.4.9) I usually run Windows XP

    OS X's filesystem, HFS+, is case-preserving, meaning
    it stores the upper and lowercase characters of
    file/folder names, however it's not case-sensitive
    (unless you specify it as such when formatting the
    disk in Disk Utility). In a case-preserving
    filesystem, MyFile, mYfILE, myfile, and MYFILE all
    reference the same file. There is no need to be rude
    to Kappy, he was just trying to help. Here's some
    reading if you want to learn more:
    http://en.wikipedia.org/wiki/HFS_Plus
    http://en.wikipedia.org/wiki/Comparisonof_filesystem
    s#fn_35
    http://en.wikipedia.org/wiki/Case-preserving
    Note: HFSX in 10.3 added the ability to format a disk
    as Case-Sensitive. If you didn't reformat your disk
    when you got your Mac, it's Case-Preserving, not
    Case-Sensitive.
    I see what you mean by case sensitive. I think Macs and Windows are similar in this regard. All that means is that if I type in a command to run, or I type a filename to launch, the OS is forgiving if I say "BLaH.JpG" for a file that is really "blah.JPG" -- if it's on the hard drive like that already.
    You bet. But in both Mac and Windows it seems, I can rename the file to whatever mixed case I want and get no errors.
    I only have this problem on the network drive,
    which like I said is a Windows 2003 Server share.
    Because your question is in the context of renaming a
    file on a remote Windows share, then all the talk of
    whether HFS is case-sensitive or not doesn't matter.
    I'm assuming the share you're connected to when
    trying to do this rename is NTFS? Macs use Samba to
    connect to Windows shares. I've never tried to do
    what you're doing through a samba share. It could be
    Samba, or it could be how you have your share set up.
    It does look like a Samba idiosyncrasy. I have used Samba before in FreeBSD (a relative to Darwin/OS X) but I would have no idea if that was the case there.
    Samba has traditionally had some oddities, bugs, and problems due to the nature of open-sourcing a Windows custom secret network system. But Macs do claim to be interoperable with other networks and systems. This can't be unusual. Lots of people need to connect to a Windows share.
    Ha, to be honest, I don't think I would even try to setup a NFS share on the Windows server, and there aren't any UNIX servers at this location.
    Who heads up the Samba stuff for Mac OS?

  • After renaming a file extention from .jpeg to .jpg I can no longer type ...

    After renaming a file extention from .jpeg to .jpg I can no longer type in any of the finder related editable fields/boxes. I can still type in my open applications fields.
    This problem also happens when I happen to find a file that has been named, for instance, 2008jpg. When I add the period to have the file read correctly as 2008.jpg, a warning box appears asking - {*Are you sure you want to change the extention from ".jpeg" to ".jpg"?* If you make this change, your document may open in a different application.} Two radio buttons are available within this warning box that read - 1 - {Use .jpg}(it is not color coded, which means it must be selected manually. - 2 - {Keep .jpeg}(it is colored w/my Blue highlight color, which means it will be selected if the Enter Key is used.
    The warning box does Not appear if I remove the period from a file and not again when i re-add the period to that same file.
    After trying to make these types of edits to the name of any file, with any of the various extentions available for files in our digital world, I usually get an anomaly where myability to type in the Finder ceases to be a possibility.
    I have found that I can Force Quit the Finder for a quick fix, but, I'm not sure that this Typing problem should have to be dealt with at all by this quick fix. Is this an issue with the Indexing in Spotlight, which seems to be giving many users problems?

    I downloaded and tried EasyFind. It works but it took 30+ seconds to complete finding 3 files that are on One of my Five 25+ Gb partitions of my 130 Gb Seagate Cuda(Really 160 Gb, but my Sawtooth will only recognize 130) I figured that if I ever got a better box, I could reformat it to see the whole 160 Gb. So, as far as I can see, Spotlight's indexing scheme which finds the files instantly is probably preferable. Spot light allows you to rename your files from within it's app window. I've always thought that was pretty powerful. Could my doing so be causing me any issues? As i said it is the inability to Type in the Finder that seemed to be caused from changing file Extentions that were mis-written. Maybe it was a delayed reaction to my renaming files in the Spotlight app? I've done both on occasion.
    As for these .DS_Store files. Apparently you can NOT stop them from being written to any folder that you touch/open/view during a days session. But, as a function of the OS, are the essential to have in their respective folders Forever? I've looked at the .DS_Store terminator app briefly and assume that getting rid of these files won't hurt the regular operation of my OS. They will just be re-written if I ever have to go back to any particular folder again. But, apparently, some have said that if the plan on burning a CD or DVD of their data, they delete the .DS_Store files first and then do the burn.
    I'm thinking from your having suggested this tremination app that you suspect that my having all of these ,DS_Store files could be a situation where any of them could have become corrupted and terminating them regularly should be part of my regular maintenance.
    Does that sound like I'm understanding what I can do?
    TIA

  • How do I rename a file on an external hard drive

    My sister is trying to rename a file on an external hard drive and when she right clicks on it, it does. to give her any options to change file name or anything

    CCLIANA wrote:
    My sister is trying to rename a file on an external hard drive...
    What is the File...?

  • How to rename a file in Application server

    Hi All,
    Here I have a issue with  the present file which is being generated in application server.
    Before the completion of the file the EDI tool is extracting the file from the app server.So here I would like to generate the file with a temp name and then rename to the actual file name which EDI recognises and fetches.
    Please correct me If I am wrong and let me know how to rename the file in application server.
    Thanks,
    Vijay N

    you can try using unix command , if your application server is unix.
    use move command
    mv   <source>  <target>
    REPORT ZUNIX line-size 400
                    no standard page heading.
    data: unixcom like   rlgrap-filename.  
    unixcom = 'mv file1 file2'.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].
    or else you can open dataset/ read the dataset and move it to another file and delete the old file.

  • Renaming a file in Sender channel

    Hi, a newbie here.
    I have to pick up a file via ftp from a system and put it into an R3. I have also to rename the file in the sender with another extension for backup.
    Is there any way to do this without creating another communication channel?
    Thanks in advance!

    Hi Ifiaki,
    If you are on SP15 or later, you can run Operating System Command Before Message Processing.
    See the details at the below link.
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Rgds,
    Sam Raju

  • Adobe photoshop CS6.Receiving the error "could not complete your request because it is not a valid photoshop document? Tried renaming the files and had working psd files and now all psd files will not open and getting the error listed. Anyone help please?

    Could not complete your request because it is not a valid photoshop document. Tried renaming the file extensions and still no luck.

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

Maybe you are looking for

  • Iphone update has left phone in recovery, can't get it to work???

    i connected the iphone up to my computer today, when prompted i updated the iphone software. Now the phone is left in the screen with the usb cable and itunes logo and won't do anything else (i had previously updated itunes). i've tried re-installing

  • IPod touch 2g will not turn on. Any help would be appreciated.

    My iPod touch was in my bookbag at school and fell out of its pocket on the inside. It got stuck beneath all my heavy books, and when I pulled it out, the metal line that you can see all the way around the front was pulled up at the top a little bit.

  • Possible to export oracle 8.1.6 solaris/import 8.1.5 linux?

    I tried to export a tablespace from 8.1.6 solaris and import into 8.1.5 on linux. I get IMP0010 error complaining that the header is invalid or corrupt. Is this sort of export/import allowed?

  • Hyperlink to open movie in QT viewer

    Hi What i am trying to accomplish is make a hyperlink on iweb page open a movie in a quicktime viewer. Can anyone help me? G5   Mac OS X (10.4.5)  

  • Configuring Business Package

    Hi , I am in the process of configuring business package.I want to enable the employee bank details information iview.I have install the business packages. I have created till the JCO Connections they are working perfectly and i am struck at creation