java - Updating text on JFrame depending on ActionListener -
This is the result of ActionListener, it returns a price based on the combo box which she chooses, I just got a simple $ 39.99 Want as and nothing else
I have
packagedx = packagechoice.get select index ();
All prices are in an array:
string [] prices = {"49.99, 39.99, 34.99, 99.99"}
Now I should know how to remove the price and display it and later be able to work with the data. But I do not know how to draw a piece of the array and set it in another variable.
If you declare the array:
string [] You can then use individual values: You can use individual values: String value = value [package index];
Comments
Post a Comment