Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 6 - Part II
Date: Tue Dec 4 2001 11:27 am
Author: White, David <white3@andrew.cmu.edu>
Subject: can't get gui to load myplayer class

I'm not an expert so, I'm not sure what the problem is.
The class file is in the directory I'm running the gui.

Is it possible that we need to have the .newInstance() function
implemented in our interface?

Thanks

(here is the code from the GraphicsGame that makes me think that..)

Class playerClass = Class.forName(p1classname);
pb = (Player)playerClass.newInstance();
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
can't get gui to load myplayer class      White, David      Tue Dec 4 2001 11:27 am       
Re: can't get gui to load myplayer ...      White, David      Tue Dec 4 2001 11:50 am       
Problem found with GUI!      White, David      Tue Dec 4 2001 11:54 am       
Re: Problem found with GUI!      Maxim, Michael G.      Tue Dec 4 2001 6:27 pm       
message.id=1      Chen, Richard      Tue Dec 11 2001 1:23 am       
Re: message.id=1      Maxim, Michael G.      Tue Dec 11 2001 4:27 am       
3 items      Chen, Richard      Thu Dec 13 2001 2:37 pm       
1 more items      Chen, Richard      Thu Dec 13 2001 3:12 pm       

Back to previous screen