Make sure to actually initialize the JComboBox. Try and find the part in explv's tutorial that contains:
= new JComboBox
That being said, if you don't know the difference between variable declaration and initialization, my advice is for you to first learn some Java fundamentals as opposed to creating scripts.