• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Lines lost during reading of a file in JTextPane

 
Ranch Hand
Posts: 492
Firefox Browser VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey everyone,

I am reading java file into a JTextPane and some of the lines are getting skipped over, and I cant seem to find where, I think I just need another set of eyes to look at my read method.



any help would be great

Thanks,
Hunter

also posted at SO: http://stackoverflow.com/questions/6283467/lines-lost-during-reading-of-a-file-in-jtextpane
 
Rancher
Posts: 3288
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have received an answer at the other forum, so why haven't you updated your posting here with the answer?

ignoreList++
 
Hunter McMillen
Ranch Hand
Posts: 492
Firefox Browser VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was planning on coming back to it later on, since I am at work and have other things to be doing. I marked the topic as resolved to indicate I had found an answer, so no one would waste their time looking for one. Don't get so bent out of shape.

Hunter
 
Rob Camick
Rancher
Posts: 3288
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I was planning on coming back to it later on,



There is not time like the present. As soon as you accepted an answer on the other site you should have indicated that on this site. It would have taken an extra minute of your time to do this.

Why should the 5-10 people who read your question on this site first have to check with the other site to see if an answer has been found?

I will continue to get "bent out of shape" when you think that your time is more valuable than our time.
 
Hunter McMillen
Ranch Hand
Posts: 492
Firefox Browser VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So the solution to this problem was how I was checking whether lines had comments, I was testing if a line contained comments, then only printing the line if the lines STARTED with comments, so lines like:



wont be printed because the line doesn't start with a comment.

Hunter
 
reply
    Bookmark Topic Watch Topic
  • New Topic