Results 1 to 2 of 2
  1. #1
    mrsethman is offline Member
    Join Date
    Oct 2012
    Rep Power

    Default File Chooser Issue

    I wrote a program to modify some .txt file for work and it works great. I am not going to be the one running the code so I decided to use the File Chooser to prevent typos from frustrating the user. When I add the text editor to the file chooser code I downloaded from the Java web site, the output stream stops outputting at line 483. The text file has 1384 lines in it. I added a counter to the editing section of the code and it tells me it is reading all 1384 lines. When I removed the editing section and tried to have it output the entire file to the new file I get the same result. It stops at about the same spot. I deleted that line from the original file thinking it had a character that was causing an issue. No luck. I even added the counter to the end of each condition and was able to output more lines but the file I am reading from still stops around 400 lines.
    What would make the output stream stop outputting to my new file?
    File Chooser is the only difference between the two programs.
    I have run out of troubleshooting ideas and would really appreciate any suggestions.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

    Default Re: File Chooser Issue

    Without an SSCCE, I've really no idea what bug is present in your code. Consider creating one of these. The process of creating this will involve paring down your code until either the error goes away, or you've isolated the error. Either way, either you've solved the problem, or you've got a nice small program to post here that will allow us to more easily help you solve it.
    Last edited by Fubarable; 10-19-2012 at 10:04 PM.

Similar Threads

  1. How to manage files in file chooser
    By vaggos in forum New To Java
    Replies: 4
    Last Post: 09-03-2012, 12:09 PM
  2. JFile Chooser
    By karno in forum NetBeans
    Replies: 4
    Last Post: 03-17-2010, 12:47 PM
  3. File chooser internationalization problem
    By Astghik in forum AWT / Swing
    Replies: 10
    Last Post: 01-14-2010, 06:44 PM
  4. [SOLVED] File chooser selecting file from directory...?
    By prabhurangan in forum AWT / Swing
    Replies: 12
    Last Post: 06-18-2008, 04:08 AM
  5. Using File Chooser
    By shaungoater in forum New To Java
    Replies: 0
    Last Post: 03-20-2008, 12:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts