File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FINAL problem whit GUI

 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have in a text file the following:

Charlize Theron 77777777
Maria Sharapova 44444444
Nicola Tesla 33333333
Mario Bros 11111111

and a gui were you can modify this text file whit the following code:


But the thing is that this code some how make problems wen i try to modify pair line, in this case maria sharapova and mario bros makes havoc in the text file wen i try to modify them.

this is how the text file looks like after i try to modify Maria Sharapova:

Charlize Theron 77777777
Albert Einstein 66666666
Nicola Tesla 33333333
Mario Bros 11111111
00
00
00
00
00
00
00 and it goes like this for like 2000 lines or more
but wen i try to change the unpair lines it works fine
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though I'm not satisfied because you persistently avoid to follow the directions given in the previous topics, I still ran the code you provided.
If this is the final version of your method, it works fine with me, with the same scenario you provided, same content of input file, and the output file looks exactly as you intended.
 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im sorry it wasnt the pair lines that make havoc it was the unpair lines that make trouble
 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wen you try it
it didnt add you white space to you text file?
 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i see the error now
it was in this line:


and i change it to:



Now my program is finish, Thanks to you Kemal. were i can post all the code for other users whit same problems?

 
Rob Spoor
Sheriff
Pie
Posts: 20385
46
Chrome Eclipse IDE Java Windows
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcelo, can you try to UseAMeaningfulSubjectLine next time? Things like "Another issue in a GUI", "different issue whit a GUI" and "FINAL problem whit GUI" aren't really helpful in a forum dedicated to GUIs.
 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Rob my bad. im new still learning
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic