From a4bbd67cab044afd6baa06e06152d08898b8d5a8 Mon Sep 17 00:00:00 2001 From: Grant Gayed Date: Thu, 21 Oct 2010 14:34:00 +0000 Subject: *** empty log message *** --- .../src/org/eclipse/swt/snippets/Snippet270.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') 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; } -- cgit