Don Hays wrote:I am new to Java Scripting and I am trying to write some code or if statement for the following.
I have 2 JButtons (one labeled btnAddTwo and one lableled btnSubOne) and one text field.I am trying to get the btnAddTwo to add 2 when I click it and the btnSubOne to subtract one from the total in the text field. I built my program in netbean as a gui frame. Everthing works except for my counting.
Don Hays wrote:Thanks for the replies - sorry if I caused any confusion or problems - I think when you are frustrated with coding the brain cells are on over load.
I think the Java Ranch is great and I will take the time to read the rule of the road when using the forums. In the future I will keep the posts short and to the point and use the [code] tags. Again thanks for your help - I hope I am in a position to help someone else down the road when I feel I can. Don
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton