User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 426,940 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,345 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

JComboBox

Join Date: Aug 2007
Posts: 57
Reputation: NycNessyness is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
NycNessyness NycNessyness is offline Offline
Junior Poster in Training

Re: JComboBox

  #3  
May 16th, 2008
I wasn't able to figure it out. Whenever I did the public String toString() { return name; }
I would get an error message. Maybe I'm doing it wrong but I wouldn't know if I am. From the example I have listed how can I implement it in that code. An example would be the greatest help I can get, even if it doesn't relate to what I posted. I would post the whole code if I could but it's 700 lines long. I have five cases that I'm trying to keep separate. For example I have a JComboBox that has 5 items. Television, Radio, Game, PC and Movie are the five items in my JComboBox. I'm trying to add a percentage to each of them. Like 10% for television, 15% for Radio and so forth. I know how to add the percentage to each item. The problem I'm having is when I multiply the percentage to the cash amount. I want the total to display in the same field. When someone picks television it will show the total for that, or if they pick game, it will show the total for that in the same field. Thanks again for the help and I appreciate you responding.
Reply With Quote  
All times are GMT -4. The time now is 12:29 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC