Run Java Bean using main method [message #612331] |
Mon, 20 March 2006 19:50 |
Eclipse User |
|
|
|
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());
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02972 seconds