Files deleted using jfilechooser xwindows exceed

Hi,
I've encountered a problem where I open up a JFileChooser dialog, click on a file to select, then click on another file to select and it deletes it! This occurs only using x windows or x emulator. Has anyone else encountered this problem and if there is a solution for it?
regards,
paul

I forgot to mention that I'm using jdk 1.4. Need help, thanks.

Similar Messages

  • File size using JFileChooser

    Hi,
    I have a File[] array (with directories and files on it), and want to take to another array the size of files only. I don't want to use File.length, because in this way i take the size of directories too.
    I tried to use this:
    for(int i=0; i<array.length; i++)
    File f = new File(path, array.toString());
    Size[i]=f.length();
    }//for
    but i don't think is good to have a Size array with "zeros" (when it finds directories) and long values (when it finds files).
    What do you propose me to do?
    Would it be good to use JFileChooser and how?
    Thanks,
    TSolonel

    What do you want to do with that array? Why not having a File[] array, so you have both length and isDirectory info. Sorting? Something else? JFileChooser seems irrelevant. But again, it's all up to what you are trying to do. Clarify

  • Files deleted using RSC Explorer - now getting "invalid path" error msgs

    Yesterday I deleted about 10 images from RSC because (1) they were no longer used in the help project and (2) RH had not deleted them from source control itself. Note: I did not just hide these files - I deleted them.
    Today when I try to "get" the whole project, I get error messages for each of those files. Caption: RoboSource Error. Message: "Error - path '[path & filename]' is invalid."
    Since these files are in various subdirectories of the project, and RSC refuses to continue getting the rest of the files after it encounters this type of problem, this means I now have to "get" the project directory by directory. Grr.
    Ok, so RSC did not like me deleting the files from RSC Explorer. So how do I fix this problem? I tried adding the files back into RSC, but I get a different error message: "Error - node '[path & filename]' already exists." (Um, which is it -- is the path invalid, as claimed by the first error message, or does it already exist, as claimed by the second one?)
    I don't know what else to try.
    The other (less urgent) question is, if I can't delete old images from RSC Explorer, and RH doesn't see to it that unused images are deleted from source control, then how do I get unused images out of source control?
    Any help would be appreciated -- especially quick help! :-)
    /Eileen

    We had already applied the 802 patch.
    I don't remember now how I solved this problem (it was back in April I posted it), but it was probably by editing the root.fpj file.
    Thank you for your replies!
    /Eileen

  • Want to access network file system using JFileChooser

    Hi all,
    I want to access and display the drives of a network file system in the JFileChooser dialog. For example by specifying a machine name, I want to access the drives(C, E, F....) of that machine. Can anyone please guide me on how to go forward with this.
    Thanks in advance

    Any links or guidance provided would bhi helpful

  • How to read text file by using jfilechooser

    please check for me.. tbrowse is textfield, the file path n name are x dispaly at tBrowse. past is my class.
    public void actionPerformed( ActionEvent e )
    if (e.getSource() == btnBrowse)
    try
    FileReader in = null;
    if (Chooser.showOpenDialog(past.this)== JFileChooser.APPROVE_OPTION)
    File selectedFile = Chooser.getSelectedFile();
    in = new FileReader(selectedFile);
    tBrowse.setText(selectedFile.getPath());
    catch (IOException exception)
         System.out.println("Error processing file: " + exception);
    Message was edited by:
    fifa1509

    Does it compile? Does it do what you want when you run it?
    If you have a problem, say what that problem is (cut and paste any
    compiler error message).
    One small point is that you could actually print the stack trace as this
    will be much more informative if you have a problem.catch (IOException exception)
        exception.printStackTrace();
    }

  • How to get absolute File Path using JFileChooser?

    Hi,
    IS there any way by which we can get the absolute file path ? e.g. If I browse thro JFileUser and Selects "a.txt" and say open, it should return me the complete file
    path e.g. D:/abc/a.txt.
    Present method.fileChooser.getSelectedFile().getName() return the name of the file i.e. a.txt and NOT the complete path.
    Pls Help !!

    fileChooser.getSelectedFile().getAbsolutePath(); will do the trick.

  • Folders that having non-ascii chars are not displaying on MAC using JFileChooser

    On MAC OS X 10.8.2, I have latest Java 1.7.25 installed. When I run my simple java program which allows me to browse the files and folders of my native file system using JFileChooser, It does not show the folders that having non-ascii char in there name. According this link, this bug had been reported for Java 7 update 6. It was fixed in 7 Update 10. But I am getting this issue in Java 1.7.21 and Java 1.7.25.
    Sample Code-
    {code}
    public class Encoding {
    public static void main(String[] arg) {
    try {
    //NOTE : Here at desktop there is a folder DKF}æßj having spacial char in its name. That is not showing in file chooser as well as while is trying to read for FILE type, it is not identify by Dir as well as File - getting File Not Found Exception
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (IllegalAccessException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    } catch (UnsupportedLookAndFeelException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    } catch (ClassNotFoundException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    JFileChooser chooser = new JFileChooser(".");
    chooser.showOpenDialog(null);
    {code}

    Hi,
    Did you try this link - osx - File.list() retrieves file names with NON-ASCII characters incorrectly on Mac OS X when using Java 7 from Oracle -…
    set the LANG environment variable. It's a GUI application that I want to deploy as an Mac OS X application, and doing so, the LSEnvironment setting
    <key>LSEnvironment</key> <dict> <key>LANG</key> <string>en_US.UTF-8</string> </dict>

  • Why won't my files delete?

    Lightroom will not delete files from hard drive. I "grab" the file(s) in Lightroom and hit delete on my keyboard. The message comes up: "Delete the selected master photo from disk, or just remove it from Lightroom?" I always click "from disk." The files are deleted from the Lightroom Catalog but are not deleted from the disk. I have version 5.2. However, I have had all previous versions. The problem has remained the same with all versions. I am using Apple Mac Pro Maverick 10.9. But I have had each version as they come to market. To state again: Why won't my files delete using the above method?

    Does it come up with an error message, or just doesn't delete them?
    Where are the files stored?  Have you checked you have full read/write permissions?

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • Cannot delete file - tried everything - file in use by Windows Explorer error

    Hi - I have tried now for 2-3 hours trying to delete an .mkv file from my "Downloads" folder
    It says the file is in use by Windows Explorer and cannot be deleted
    I have tried deleting it using Del command prompt as me and as Administrator (I am the Admnistrator, there are no other users) - no luck
    I have tried Safe Boot and then deleting - no luck
    I have tried rebooting many times and then deleting - no luck
    Any ideas? It's driving me nuts

    hi to all who have this bug- "file in use by Windows Explorer error"
    this is the only way that it works:
    1.type cmd in search box
    2.go to the drive and the directory the file is in ,for example:
    after you type cmd you have a black screen with c:\user\
    type in the drive the file is in and hit enter example - d: than hit enter
    than you should see d:\>
    now click the directory the problem file is in ,for example i will call the directory "movies"  type in this-   cd movies
    now you will see this d:\movies>
    to delete the file type this:  del filename.mkv (dont forget the .mkv or any other file extension) don't hit enter yet, first open task manager (cntrl+shift+esc) go to process tab than right click on explorer.exe choose and click on end process
    now your desktop should disappear. get back to the "cmd" window and hit enter.
    now the file is deleted. now go back to the task manager and click on "file" on the upper left corner then on new task then type in "explorer.exe"
    and you are done
    please note that the file name you choose to delete cant be with spaces between the letters .if so you will need to change it in the same way in the cmd window only the comand will be instead of "del filename.mkv"(for example) after you are in the
    right drive and directory:
    rename "test space.mkv" testspace.mkv
    hope i helped
    this is the only way it workes
    Instead of running a CMD prompt and typing everything, just start up Winrar or Winzip, kill Explorer, then delete problem MKV files to your hearts content within Winrar or Winzip.
    Winrar and Winzip will navigate your folders as well.
    After you are done, create a new Explorer task.
    or.....   if you need to rename MKV files, just rename them within Winrar/Winzip with Explorer not running.
    I change the MKV extension to AVI (in Winrar with Explorer killed) in order to avoid Explorer issues, if I ever want to move the files in the future without needing to kill Explorer all the time to do so .
    Using WinRAR works for me. Using the cmd function becomes complicated when I cannot rename my file with the rename command".

  • Delete files from computer - not allowed, file in use

    Using firefox to upload files online, being this a simple pdf document or a video file, prevents me from deleting the file from my hard drive, once the process is completed. Once I quit the web browser, deleting the file is possible. It looks like firefox is keeping the link to a file in constant use even after the website at which the file was used is no longer opened. Am I missing some something in firefox's properties settings?

    I've called the big guys to help you. Good luck.

  • How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    Use OmniDiskSweeper
    Once you find file, it can be deleted from within OmniDiskSweeper
    Allan

  • How to get the file path of selected file using JFileChooser

    Hi All,
    I am trying to store the file on my FTP server after selecting the file from the user workstation using JFileChooser. But I am not able to write the file on FTP server or on user local machine where application is running. I am new to this FTP server coding. Can anyone help me in this.
    This is the code I wrote on button click user will able to select the file:
    String filename1;
    File file;
    JFileChooser fc = new JFileChooser();
    fc.showOpenDialog(this);
    file = fc.getSelectedFile();
    filename1 = file.getPath();
    txtFilePath.setText(filename1);
    Below is the code to write the file on my local machine first:
    BufferedWriter outFile = new BufferedWriter( fileName ) );
    outFile.write();
    outFile.flush( );
    outFile.close( );
    Any help will be greatly appriciated

    rp0428 wrote:
    >
    BufferedWriter outFile = new BufferedWriter( fileName ) );
    >
    There is NOTHING named 'fileName' in any of the code you posted so that code can't possibly compile let alone actually run.
    How can anyone help you if you won't post the actual code you are using?Its just a random snippet of other code that is totally irrelevant to this thread if you ask me.

  • ITunes Match has stopped uploading - every file errors and says waiting - I have tried to delete the files and use other formats etc.  I have had the service since Day 1 and NEVER had an issue.  It didn't start until the Delete from Cloud switch to Hide

    iTunes Match has stopped uploading - every file errors and says waiting - I have tried to delete the files and use other formats etc.  I have had the service since Day 1 and NEVER had an issue.  It didn't start until the Delete from Cloud switch to Hide from cloud - the files that do not upload show grayed out on my other devices.

    Have you confirmed that you successfull purged iTunes Match by also looking on an iOS device?  If so, keep in mind that Apple's servers may be experiencing a heavy load right now.  They just added about 19 countries to the service and I've read a few accounts this morning that suggests all's not running perfectly right now.

  • File in Use error deleting PDF in Windows 8.1 SkyDrive

    I'm using SkyDrive and have ran into an interesting issue.
    I'm also using Adobe Acrobat XI Standard
    When I save a PDF file to SkyDrive in Windows 8.1, it becomes difficult to delete the file via the file explorer
    I get a "File In Use" error - "The action can't be completed because the file is open in another program" - yet it's not.
    It gives me the option to "Try Again" and I click that about 4 times, getting the same error, and then after the 4th time, it allows the deletion of the file.
    If I were to save the PDF to my desktop, it deletes immediately.
    It seems to only be in the SkyDrive directory where it's an issue
    Other document types do not have this problem.
    I am using the standard security within Windows 8.1, and it hasn't detected a virus.
    All newly created PDF files are acting like this.  Non-PDF files are deleting properly.
    So it's not existing/old files, or non-PDF files.

    Only for PDFs.  Acrobat and Reader are not running while deleting the file. 
    In looking into this further, the Modern app for SkyDrive shows these files as awaiting updates on SkyDrive - even after 24 hours later.  Until they are updated, they continue to have this issue within the File Explorer view.
    I would say that this is a SkyDrive issue, but it’s only related to PDFs.  Word, Excel, JPGs, etc. all function properly.  It seems to be some interaction between Acrobat or PDFs and SkyDrive.

Maybe you are looking for

  • Adobe muse not working!

    i have paid for the month to month with adobe muse but when click the download button NOTHING happens!!! this has been for 2 days now and NO ONE can help over the phone. ALSO, how is there NOT an option to make an image larger on your website? when y

  • What to do when Adobe's indifference is "destroying" your business?  Where to contact when normal Adobe support don't help?

    I have tried to get help 2 weeks using Adobe customer service. I have chatted with supervisors and normal staff “million times” and only one time I have talked with normal phone support. Phone support promised follow up the case and call me back next

  • Copy from within a pdf?

    How can I "copy out" a couple pages from an existing pdf and save them as their own pdf (no changes)

  • URGENT:  Journal Batch Workflow Issue

    Hi All, I am facing issue with Journal Batch Workflow. There is function called "Find Approver",when we go for Approve the Journal then it returns "NO Approver Find".But when sysadmin reassign to requestor and requestor response as "Problem Fixed" th

  • Sales order delivery dates

    Hi all, A critical scenario I am stuck in. My client has 3 plants viz. 1000, 1100, 1200. Plant 1000 gets sales orders from different customers and production happens on plants 1100 and 1200 through special procurement key. Customer A and customer B a