View Single Post
  #3 (permalink)  
Old 05-05-2009, 02:03 PM
leandro's Avatar
leandro leandro is offline
Member
 

Join Date: Mar 2009
Posts: 30
Thanks: 0
Thanked 3 Times in 3 Posts
leandro is on a distinguished road
Default Re: Exception in thread "main" java.lang.NullPointerException

Hi Ashley,

You forgot to initialize your foodList var:

Put this code when you declare the var:

Java Code
JComboBox[] foodList = new JComboBox[4];
And thats it!
Reply With Quote