Array on jlabel/imageicon don't work
Hi!
I'm creating some kind of gamebuilder :) Just to learn. I wonder how to use arrays with jlabel/imageicon.
Here is my code:
JLabel[] jLabel1;
jLabel1 =new JLabel[10];
// When i try this the program stops
jLabel1[0].setIcon(new ImageIcon("lib\\image\\chest.PNG"));
When i try to start it i get an NullPointerException. Should i work with Buffered Images instead?
Thanks in advance!

