Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes different issue whit a GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "different issue whit a GUI" Watch "different issue whit a GUI" New topic
Author

different issue whit a GUI

Marcelo Bordolli
Ranch Hand

Joined: Sep 03, 2012
Posts: 46

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?


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

Joined: Jun 19, 2010
Posts: 825
    
    5

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.


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

Joined: Sep 03, 2012
Posts: 46

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

Joined: Jun 19, 2010
Posts: 825
    
    5

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

Joined: Sep 03, 2012
Posts: 46

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
 
wood burning stoves
 
subject: different issue whit a GUI
 
Similar Threads
Substring and Searching
read a txt into a textarea
can i call a function of servlet using jstl
Another issue in a GUI
issue in a gui