Newbie: I am trying to create an applet that allows a user to enter the number of guest and display the per person price or total cost (number of guest * price). The user should be allowed to change the number of guest without exiting the application. I know that it is a loop. Please see the code below
Yes, that's what you said. But in any case, there is no code above that shows how guestPrice is displayed to the user, so if the problem is in fact with that part of the program -- especially the part that actually arranges for the new value to be displayed -- then you'll have to actually show us that part of the code ro we can't help you with it.
In general, changing the value of an int member variable will have absolutely no effect on any GUI display. Some code, somewhere, would have to deliberately do something to display the new value -- and you're not showing us any code that does anything like that.
Joined: Oct 01, 2005
I apologize..I thought I had posted it in my orginial posting.. here it is