Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-05-12 16:09:05 +0000
committerVeronika Irvine2004-05-12 16:09:05 +0000
commited9cc0c70c0b42507cfcd48b0a00dce10d091e5c (patch)
tree83d7ebbc5f4fe7f64a02eb396b4b517731a5ca77 /examples
parentd8cee51de450530bca0ed28abafe52192ae15715 (diff)
downloadeclipse.platform.swt-ed9cc0c70c0b42507cfcd48b0a00dce10d091e5c.tar.gz
eclipse.platform.swt-ed9cc0c70c0b42507cfcd48b0a00dce10d091e5c.tar.xz
eclipse.platform.swt-ed9cc0c70c0b42507cfcd48b0a00dce10d091e5c.zip
example tabfolder should have content that can take focus
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java
index 88789578ed..dc915bbaf5 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java
@@ -64,9 +64,9 @@ class TabFolderTab extends Tab {
for (int i = 0; i < TabItems1.length; i++) {
TabItem item = new TabItem(tabFolder1, SWT.NONE);
item.setText(TabItems1[i]);
- Label label = new Label(tabFolder1, SWT.NONE);
- label.setText(ControlExample.getResourceString("TabItem_content") + ": " + i);
- item.setControl(label);
+ Text content = new Text(tabFolder1, SWT.WRAP | SWT.MULTI);
+ content.setText(ControlExample.getResourceString("TabItem_content") + ": " + i);
+ item.setControl(content);
}
}

Back to the top