Open another shell [message #120849] |
Sat, 25 March 2006 12:46  |
Eclipse User |
|
|
|
Originally posted by: stepehn.gmail.com
How do I open another shell class from within an existing shell class.
For example, how would I open the shell below from within a shell?
package view;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Shell;
public class SelectCampaign {
private Shell sShell = null;
/**
* This method initializes sShell
*/
private void createSShell() {
sShell = new Shell();
sShell.setText("Shell");
sShell.setSize(new Point(300, 200));
sShell.setLayout(new GridLayout());
}
}
|
|
|
Re: Open another shell [message #120854 is a reply to message #120849] |
Sat, 25 March 2006 14:56  |
Eclipse User |
|
|
|
Originally posted by: df.eleon.de
Hi,
Am Sat, 25 Mar 2006 17:46:23 +0000 schrieb Stephen:
> private void createSShell() {
> sShell = new Shell();
> sShell.setText("Shell");
> sShell.setSize(new Point(300, 200));
> sShell.setLayout(new GridLayout());
sShell.setActive();
sShell.setVisible(true);
> }
> }
is it that what you need?
Best regards,
Dominik
|
|
|
Re: Open another shell [message #612356 is a reply to message #120849] |
Sat, 25 March 2006 14:56  |
Eclipse User |
|
|
|
Originally posted by: df.eleon.de
Hi,
Am Sat, 25 Mar 2006 17:46:23 +0000 schrieb Stephen:
> private void createSShell() {
> sShell = new Shell();
> sShell.setText("Shell");
> sShell.setSize(new Point(300, 200));
> sShell.setLayout(new GridLayout());
sShell.setActive();
sShell.setVisible(true);
> }
> }
is it that what you need?
Best regards,
Dominik
|
|
|
Powered by
FUDForum. Page generated in 0.02592 seconds