NullPointerException
Hi
i am writing a code which is using an array of objects ... when i try to run the code it gives me a nullpointer exception on line 24 Code:
import java.awt.Rectangle; thanks |
You need to initialise all the JLabels of your array.
ie textLabels[0] = new JLabel(); it's the way I see that. Cheers. |
thanks a million ... it worked
|
All times are GMT -5. The time now is 10:03 PM. |