R
Ralf Bednarz
I have some problems with store and retrieve instance from a hashtable
I create an instance of a java3d class with newInstance() and store this
object in a hastable with the class name as the key.
When I try to get this object from the hashtable, all textures I load in the
java3d class except one are not displayed.
// source[0] = string that represents the name of the class
// instanceHash = Hashtable where I put the instances
// pluginInstance = Object which contains the created instance
if(instanceHash.containsKey(source[0]))
{
pluginInstance = instanceHash.get((String)source[0]);
}else
{
pluginInstance = pluginClass.newInstance();
instanceHash.put((String)source[0],pluginInstance);
}
getContentPane().add( (Container) pluginInstance,BorderLayout.CENTER);
validate();
I can load the class as often as I want but the textures are not displayed
execpt one and that is the same all the times.
The same problem appears when I do this action with a Vector instead of
Hashtable.
Hope you can help me
thanks
Ralf
I create an instance of a java3d class with newInstance() and store this
object in a hastable with the class name as the key.
When I try to get this object from the hashtable, all textures I load in the
java3d class except one are not displayed.
// source[0] = string that represents the name of the class
// instanceHash = Hashtable where I put the instances
// pluginInstance = Object which contains the created instance
if(instanceHash.containsKey(source[0]))
{
pluginInstance = instanceHash.get((String)source[0]);
}else
{
pluginInstance = pluginClass.newInstance();
instanceHash.put((String)source[0],pluginInstance);
}
getContentPane().add( (Container) pluginInstance,BorderLayout.CENTER);
validate();
I can load the class as often as I want but the textures are not displayed
execpt one and that is the same all the times.
The same problem appears when I do this action with a Vector instead of
Hashtable.
Hope you can help me
thanks
Ralf