Hiding / closing / myShell [message #445440] |
Fri, 05 November 2004 17:58 |
Eclipse User |
|
|
|
Originally posted by: James.Corbett.CCRA-ADRC.GC.CA
Ok, its the end of a rough week and I am about as thick as a brick...
I have a controller class that has all of my listeners. This same class
creates an instance of my main class which in turn creates an instance of
my About class. The main class also creates a main menu bar and I listen
for the events from my controller.
Anyhow, I can display the About class GUI and close it accordingly with
out issue. However the second time through I hang the app with an error
message informing me that my About shell has been disposed.
Ok, I know that I do close it with the following line of code:
tm3.getAbout().getMyShell().close();
So, the close actually disposes of my aAbout class... Is there a manner to
hide or set this About GUI class to be invisible?
Jim
|
|
|
Re: Hiding / closing / myShell [message #445480 is a reply to message #445440] |
Sat, 06 November 2004 15:56 |
Eclipse User |
|
|
|
Originally posted by: nickthat.yahoo.com
Jim,
Try using shell.setVisible(false)
Nick
Jim Corbett wrote:
> Ok, its the end of a rough week and I am about as thick as a brick...
> I have a controller class that has all of my listeners. This same class
> creates an instance of my main class which in turn creates an instance of
> my About class. The main class also creates a main menu bar and I listen
> for the events from my controller.
> Anyhow, I can display the About class GUI and close it accordingly with
> out issue. However the second time through I hang the app with an error
> message informing me that my About shell has been disposed.
> Ok, I know that I do close it with the following line of code:
> tm3.getAbout().getMyShell().close();
> So, the close actually disposes of my aAbout class... Is there a manner to
> hide or set this About GUI class to be invisible?
> Jim
|
|
|
Powered by
FUDForum. Page generated in 0.03582 seconds