Hi Katja:

I know you didn't get into detail in your original
message, but would you explain why you need to
open/save/use a .class file?

It would seem that you should serialize your
branchgraph and then try to load it back through a
filechooser/open commmand, so I'm a bit confused as to
why you need to use a .class format.

AstroDavid

--- Katja Loescher <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I am programming an application that is supposed to
> open any .class file
> during runtime (with the JFileChooser). I then get
> out the branchgraphs of the
> file and import them into my universe. I will then
> add an path interpolator
> which will be attached to a "camera". The user is
> allowed to choose points
> which will be displayed in a table. (The points are
> being recorded so that a
> "movie" of the camera moving from point to point as
> the user has defined will be
> created.)  The file can then be saved. The saved
> file has to be a .class at
> the end, so it can be run as an applet. I was
> thinking about creating a .java
> and then compile it. (I won't get into why, but it
> must be an applet). There
> also has to be the possibility to open an already
> edited file again and get
> the points of that user defined path that I entered
> into the behavior that is
> included in the scene graph, and change the path. My
> idea was to put the
> points into a text file.
>
> I tried to open the file via the Class object that
> Java offers. I created a
> new instance of the loaded class and get the
> branchgraphs out to put them
> into my own universe. I did not use the universe in
> the loaded file because I
> did not know the names of the variables I have to
> reference for the behavior
> etc.
>
> A problem occured when I tried to load a .class file
> that calls a method to
> load the texture. I could not see the texture after
> the loading done as
> described above. How can I preserve the texture if I
> load it the way I was trying
> to?
>
> Is this the best way to load the file or is there a
> better way?
>
> I planned on saving the file with a FileWriter. How
> do I find out which
> import statements to include when I do this?
>
> I asked a similiar question before, but not in this
> context, so sorry to
> bother you again!
>
> I highly appreciate any help! Thanks in advance!
>
> Regards,
> Katja
>
> --
> +++ GMX - Mail, Messaging & more  http://www.gmx.net
> +++
> NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/
> Min. surfen!
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff JAVA3D-INTEREST".  For
> general help, send email to
> [EMAIL PROTECTED] and include in the body of the
> message "help".


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to