diff options
author | Grant Gayed <ggayed> | 2010-10-21 14:34:00 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2010-10-21 14:34:00 +0000 |
commit | a4bbd67cab044afd6baa06e06152d08898b8d5a8 (patch) | |
tree | 800e540473cc281a00e777cd641d49866bd3fee4 /examples | |
parent | 18f55040fb554a39c6260254cb75ab87d1140b9e (diff) | |
download | eclipse.platform.swt-a4bbd67cab044afd6baa06e06152d08898b8d5a8.tar.gz eclipse.platform.swt-a4bbd67cab044afd6baa06e06152d08898b8d5a8.tar.xz eclipse.platform.swt-a4bbd67cab044afd6baa06e06152d08898b8d5a8.zip |
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java index 4a61d156e6..9dcfe8bdee 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java @@ -26,6 +26,8 @@ import org.eclipse.swt.browser.*; public class Snippet270 { +static final int BROWSER_STYLE = SWT.NONE; + public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); @@ -33,7 +35,7 @@ public static void main(String[] args) { shell.setLayout(new FillLayout()); final Browser browser; try { - browser = new Browser(shell, SWT.NONE); + browser = new Browser(shell, BROWSER_STYLE); } catch (SWTError e) { System.out.println("Could not instantiate Browser: " + e.getMessage()); display.dispose(); @@ -57,7 +59,7 @@ static void initialize(final Display display, Browser browser) { Shell shell = new Shell(display); shell.setText("New Window"); shell.setLayout(new FillLayout()); - Browser browser = new Browser(shell, SWT.NONE); + Browser browser = new Browser(shell, BROWSER_STYLE); initialize(display, browser); event.browser = browser; } |