Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Open another shell
Open another shell [message #120849] Sat, 25 March 2006 17:46 Go to next message
Eclipse UserFriend
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 19:56 Go to previous message
Eclipse UserFriend
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 19:56 Go to previous message
Eclipse UserFriend
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
Previous Topic:Open another shell
Next Topic:VE not opening up
Goto Forum:
  


Current Time: Sat Apr 27 00:23:45 GMT 2024

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

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

Back to the top