posted 22 years ago
Hi,
I wrote the following class:
Now, I want to create a lot of objects in my Main Class. This class extends a JFrame. I don't know before how many objects I need. So I tried to add them to a Vector with following code:
If I call the method aFunction() I always get a NullPointerException.
How can I create a count of objects? It seems to me that the object is not finished and so the Vector has nothing to add!?
Please help...
Thanks