Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hiding / closing / myShell
Hiding / closing / myShell [message #445440] Fri, 05 November 2004 17:58 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Color and dispose
Next Topic:Best practive with SWT
Goto Forum:
  


Current Time: Tue Nov 24 07:29:03 GMT 2020

Powered by FUDForum. Page generated in 0.01764 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top