d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Java Gui Problem 2k Fg For Someone To Fix It!
Add Reply New Topic New Poll
Member
Posts: 24,101
Joined: Nov 8 2007
Gold: 5,561.70
Jun 13 2012 04:31pm
So my daughter made the following GUI in java, it contains two classes.

GUI:

http://pastebin.com/SesibmZH

Interest Calulations:

http://pastebin.com/QEVq9qT4

My current problem:

The user is supposed to be able to type in a rate and a principal and use the bottom slider to increment the years.

It should work something like this: http://www.cs.umd.edu/class/summer2012/cmsc132/projects/InterestTable/applicationVideo/applicationVideo.htm

Her's currently doesn't respond to changes in the rate and principal text boxes and doesn't show multiple years.

Pretty much looking for tips on how to implement the rest of the code, or 2k fg if someone can fix it entirely.
Member
Posts: 56,161
Joined: Jul 21 2010
Gold: 1.00
Jun 13 2012 04:39pm
hmmm i have no idea what im doing here
Member
Posts: 11,136
Joined: May 7 2006
Gold: 0.01
Jun 13 2012 05:12pm
First thing I noticed is you never set principal or rate to any value. You need to convert the text field to a double using: Double.parseDouble(textField.getText())

Edit: Fixed it entirely now

This post was edited by Sanity on Jun 13 2012 05:30pm
Member
Posts: 24,101
Joined: Nov 8 2007
Gold: 5,561.70
Jun 13 2012 06:32pm
Nvm fixed it myself like an hour ago


Quote (Sanity @ Jun 13 2012 07:12pm)
First thing I noticed is you never set principal or rate to any value. You need to convert the text field to a double using: Double.parseDouble(textField.getText())

Edit: Fixed it entirely now


Yeah noticed that like 5 minutes after I posted, pretty much altered some code and it worked perfectly :D

Tipped you anyways, sorry for wasting your time :(

THIS PROGRAM IS ALREADY FIXED PLEASE IGNORE THIS THREAD, THANKS!


This post was edited by lopelurag on Jun 13 2012 06:36pm
Member
Posts: 133
Joined: May 31 2012
Gold: 401.60
Jun 22 2012 09:23am
I've taken this course at UMD before and could help if you need any further aid with projects feel free to PM me.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll