 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ralf Bednarz Guest
|
Posted: Tue Jul 15, 2003 9:10 pm Post subject: texture probem |
|
|
hi
I have problems with storing and retrieving a java3d class object (which
contains some textured object) in a Hahtable.
Whe I want to load again the stored object, all textures except one are
lost. The texture which always appears is the same every time i load the
class object from the Hashtable.
here is some code:
// if the instance is already in the Hashtable, I try to get the instance
// source[0] is the String that represents the class name
if( ! instanceHash.containsKey(source[0]))
{
// I create a new instance and put it in the Hashtable
// pluginInstance is th Object I get when I create the instance
pluginInstance = pluginClass.newInstance();
instanceHash.put((String)source[0],pluginInstance);
}
pluginInstance = instanceHash.get((String)source[0]);
and when i try to show it in a JPanel, the textures are lost. But not for
the first time i get it from the hastable
getContentPane().add( (Container) pluginInstance,BorderLayout.CENTER);
validate();
thanks for help
Ralf
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|