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

  #60  
Jul 28th, 2007
Even after I turned it in I kept working on it. I did discover one interesting piece of information, you can use html tags to format toString output. <br> being a newline command in html.

public String toString()
	{
	return "<html>Artist: " + artist +
	" CD Name: " + name + 
	"<br> Item Number: " + itemno + 
	" Price: " + formatter.format(getPrice()) + 
	"<br> In Stock: " + nstock + 
	" Stock Value: " + formatter.format(getValue())  + 
	"<br> Restocking Fee: $" + restock + 
	"<br> Total Inventory Value: "  + formatter.format(getTotal())+ "</html>";
	}
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:38 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