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

  #8  
Jul 25th, 2007
All thunder is welcome here, as there is certainly none coming from me!
I do think I understand a little better. I added a cast to CdwArtist, andI made some changes that I think help, but got a new error that I have never seen before.
priceField.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent evt)
			{
			 valueField.setValue("$"+new Float(currentCD.getValue()));
			}
		});

Inventory2.java:189: local variable currentCD is accessed from within inner class; needs to be declared final.
I do not know what to do with this. I know what it means to delcare something final, but not how or why it would apply to this statement.
I think I am getting dumber as the day goes on.
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 5:45 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