aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes FINAL problem whit GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "FINAL problem whit GUI" Watch "FINAL problem whit GUI" New topic
Author

FINAL problem whit GUI

Marcelo Bordolli
Ranch Hand

Joined: Sep 03, 2012
Posts: 46

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


I know is only java
BUT I LIKE IT!!!
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

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.


The quieter you are, the more you are able to hear.
Marcelo Bordolli
Ranch Hand

Joined: Sep 03, 2012
Posts: 46

im sorry it wasnt the pair lines that make havoc it was the unpair lines that make trouble
Marcelo Bordolli
Ranch Hand

Joined: Sep 03, 2012
Posts: 46

wen you try it
it didnt add you white space to you text file?
Marcelo Bordolli
Ranch Hand

Joined: Sep 03, 2012
Posts: 46

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

Joined: Oct 27, 2005
Posts: 19784
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Marcelo Bordolli
Ranch Hand

Joined: Sep 03, 2012
Posts: 46

Ok Rob my bad. im new still learning
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FINAL problem whit GUI