B
biomechanism
Hi,
I've been trying to write some test code for dynamic class loading.
Basically, I have a JTabbedPane, and I want to dynamically add
panels (JPanel)to it.
There is however a problem trying to instantiate the class after it
has been loaded, I get an exception.
Actually, this is only true if I try to use a constructor.
when I leave out the constructor code I can call a method to
do the initialisation after instantiation, but this isn't
really what I want.
Has anyone had this problem, or any suggestions on fixing it?
Regards,
Shane.
I've been trying to write some test code for dynamic class loading.
Basically, I have a JTabbedPane, and I want to dynamically add
panels (JPanel)to it.
There is however a problem trying to instantiate the class after it
has been loaded, I get an exception.
Actually, this is only true if I try to use a constructor.
when I leave out the constructor code I can call a method to
do the initialisation after instantiation, but this isn't
really what I want.
Has anyone had this problem, or any suggestions on fixing it?
Regards,
Shane.