....at least I think it's simple?
I've got a Java Console going that allows input for some variables. When a
button is pressed, it passes those variables to a class that creates a new
window/frame with the Java3D canvas and all the live "world".
Up to this point everything works fine. Now with another button OR the frame
exit button, I want to totally remove this window/frame and all of it's
components, free up all resources and allow the user to start over.
I can't find a good way to totally remove the frame containing the canvas
without destroying the console frame. I've tried several methods but nothing
seems to work reliably.
here's a snip of what I've got so far, but it's un-reliable at best:
static class killAdapter extends WindowAdapter
{
public void windowClosing(WindowEvent event)
{
// operatorThread = null; <------------------- throws
"not static" error
frame.removeAll();
frame.dispose();
frame = null;
System.gc();
};
};
Don Casteel
Manufacturing Engineer
TEXTRON Automotive Company -- Athens Operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Voice: (423)744-1109
Fax: (423)744-1112
Pager: (423)744-1129 -- 109
Internet: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
===========================================================================
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".