Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Run Java Bean using main method
Run Java Bean using main method [message #612331] Tue, 21 March 2006 00:50
Stephen is currently offline StephenFriend
Messages: 47
Registered: July 2009
Member
I have use VE to generate an SWT Shell application and I've been running it
as a Java Bean. I want to modify this application so that it will:

- Run from a main method
- Rus as a Java Bean
- Still be editable using Visual Editor

Here is a sample empty SWT Shell application below, how do I modify this to
achieve my goals?

public class TestShell {
private static 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());
}
}
Previous Topic:Problem instaling VE v1.2M2 in Eclipse-SDK-3.2M5a
Next Topic:default widget color
Goto Forum:
  


Current Time: Fri Apr 26 00:43:22 GMT 2024

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

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

Back to the top