RSS Forums RSS
Please support our Java advertiser: Lunarpages Java Web Hosting

First JLIST, used with GUI Inventory

Join Date: Jul 2007
Posts: 186
Reputation: no1zson is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
no1zson's Avatar
no1zson no1zson is offline Offline
Junior Poster

Re: First JLIST, used with GUI Inventory

  #49  
Jul 27th, 2007
Wow. For once I was actually thinking too much. That was way too simple. I tend to over analize when I start getting tired.
One more question before I close this out and get some sleep, maybe take a day or two off before I start working on new buttons to put in here, but I am going to try and format the output to be more aestetic than one continuous line, which will mean I only want to display one cd at a time in the output box.
I have been doing stupid crap to it for two days trying to impliment this, I know it has to be simple, but I am just not thinking about it right.
Here is my latest attempt ... I know I need to call newCD right?
	public String toString()
	{
	return listModel.newCD("Artist: " + artist +
	" CD Name: " + name + 
	" Item Number: " + itemno + 
	" Price: $" + formatter.format(getPrice()) + 
	" In Stock: " + nstock + 
	" Stock Value: $" + formatter.format(getValue())  + 
	" Restocking Fee: $" + restock + 
	" Total Inventory Value: $"  + formatter.format(getTotal()));
	
I think this is the closest I have to being right, because it only gives me the symbol error, every other thing I have tried really blows up.
I never drew first, but I drew first blood.
I'm no ones son, unforgiven.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:44 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC