Thread
: [SOLVED]
Exception in thread "main" java.lang.NullPointerException
View Single Post
#
3
(
permalink
)
05-05-2009, 02:03 PM
leandro
Member
Join Date: Mar 2009
Posts: 30
Thanks: 0
Thanked 3 Times in 3 Posts
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!
leandro
View Public Profile
Send a private message to leandro
Visit leandro's homepage!
Find all posts by leandro