|
Re: Hide Shell [message #735053 is a reply to message #734724] |
Mon, 10 October 2011 19:20 |
|
Lakshmi P Shanmugam Messages: 279 Registered: July 2009 Location: India |
Senior Member |
|
|
Hi,
The window appears because Shell.open() marks the window as visible and makes it the active shell (please see the javadoc of Shell.open()). So, don't call open() until you want to show the window.
Lakshmi P Shanmugam
[Updated on: Mon, 10 October 2011 19:20] Report message to a moderator
|
|
|
Re: Hide Shell [message #735144 is a reply to message #735053] |
Tue, 11 October 2011 04:35 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Just Out of curiosity,
Why do you require a window shell without visibility?
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
|
|
Re: Hide Shell [message #736890 is a reply to message #736006] |
Fri, 14 October 2011 12:41 |
|
Lakshmi P Shanmugam Messages: 279 Registered: July 2009 Location: India |
Senior Member |
|
|
The window is created when you call new Shell(). Shell.open() moves the receiver to the top of the drawing order, marks it visible, sets the focus and asks the window manager to make the shell active (from the javadoc).
So, you will be able to add the controls to the Shell even if you have not called open().
You can choose to show the Shell either using Shell.open() or Shell.setVisible(true). And hide the Shell using Shell.setVisible(false) (Shell.close() will dispose the shell)
Lakshmi P Shanmugam
[Updated on: Fri, 14 October 2011 12:42] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03184 seconds