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

different issue whit a GUI

 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a gui whit a modify button and 4 jtext fields
like this:

ID of the person to modify: first jtextfield

New name: second jtextfield
new last name: 3 jtextfield
new Id: 4 jtextfield

and a button called modify, we i press the button the modify part happend but it also put on my list many zeros like this:

Isla Fisher 45345355 (Last name on the text file)
0
0
0
0
0
0
0(and keep like for 2000 or more zeros like that on the file too)

my code for that is:

Any hints Kemal?
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though there are couple of things I mentioned you yesterday that should be done differently, this code seems to be doing the job. I even ran it now (the exact one you posted here) and it gives good results without any 0s at the end of file.
 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well now is working just fine, i mean were the 0s go?, maybe i change a few thing before i posted here and didnt run it , and wen i posted i post the working one, now works fine, i cant explain what happend before my only theory is that i make a change and didnt run i t and post it whit the change, but that is weird cos i run the code many times before posting, to make story short ....is a mistery and is working! Thanks as always ill add you email Kemal and i hope one day i be such pro in java that i can help people here in the ranch just like you. i try a few weeks ago to pass the certification programmer exam and fail whit 50% passing score was 61% at this rate is going to be dificult to get a job, i know the theory pretty much but i need more coding experience, a job as junior programmer will do fine but i got nothing to prove that i know java, maybe you can give me a hint on that? thanks man !!! i f you wore here in my country ill buy you a beer!


and yes the remove and add thing that you told me yesterday, that just slipped through my fingers! got to change that
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcelo Bordolli wrote:... try a few weeks ago to pass the certification programmer exam and fail whit 50% passing score was 61% at this rate is going to be dificult to get a job, i know the theory pretty much but i need more coding experience, a job as junior programmer will do fine but i got nothing to prove that i know java, maybe you can give me a hint on that?...

Well, don't lose your will to work more and hard to improve your development skills. To discuss further about details, well, that's for another topic and conversation. The only hint that I can give you now is not to rush into Swing or some other more advanced topics. Consider working more on some more basic topics until you get more experience, work through examples of your own and try to make them better, etc. Once you are sure you unterstand the language well enough, go further.
Also, I think I told you that already - avoid NetBeans GUI builder if you want to really learn Swing well. Once you get enough experience and you think your skills have improved, you can jump to using any IDE you want, but you really should understand what's going on there.
 
Marcelo Bordolli
Ranch Hand
Posts: 46
Android Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im almost done whit this small project, wen this project is finish, i will be done whit netbeans for a while and ill just go back to the good old notepad
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic