JCombo Box to populate 2 JTextFields
Hello Everyone,
I want to have a JComboBox that has 3 options:
7 Years at 5.25%
15 Years at 5.5%
30 Years at 5.75%
I also have two JTextFields; one is for percentage and the other is for years. What I want to do is populate the text fields depending on what choice is selected.
For Example: the user chooses 7 Years at 5.25%, this will cause the JTextField for years to populate with 7 and the JTextField for percentage to populate with 5.25
Current I have two separate JComboBoxes to do this, one for years and one for percentage. I just want to see if it is possible to combine this functionality into one for experimental and learning purposes. Thanks.
Re: JCombo Box to populate 2 JTextFields
I just wanted to let everybody know that I have figured it out. You guys have been extremely helpful by not acknowledging my post, let alone providing suggestions or feedback of any sort. Keep up the good work.
Re: JCombo Box to populate 2 JTextFields
Quote:
Originally Posted by
jdubicki
I just wanted to let everybody know that I have figured it out. You guys have been extremely helpful by not acknowledging my post, let alone providing suggestions or feedback of any sort. Keep up the good work.
Getting answers is highly dependent upon how you ask the question. So in essence, I see the above as a cynical and sarcastic comment pointing directly back at yourself. Contributors that don't see it this way...well many of us have good memories, and remember who is appreciative of the time unpaid volunteers given and those who are not.