AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

texture probem

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> 3D Graphics API's for Java
View previous topic :: View next topic  
Author Message
Ralf Bednarz
Guest





PostPosted: Tue Jul 15, 2003 9:10 pm    Post subject: texture probem Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> 3D Graphics API's for Java All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.