diff options
author | Steve Northover <steve> | 2005-10-24 18:55:41 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-10-24 18:55:41 +0000 |
commit | b48c0188461603c1ee49112ea7db13d25d3dec5b (patch) | |
tree | 5171f1e1eba46ba6ae78f16b3275e82b40624b10 | |
parent | 0f59ae273771c75506cc9632ccc4b415a1cb8a28 (diff) | |
download | eclipse.platform.swt-b48c0188461603c1ee49112ea7db13d25d3dec5b.tar.gz eclipse.platform.swt-b48c0188461603c1ee49112ea7db13d25d3dec5b.tar.xz eclipse.platform.swt-b48c0188461603c1ee49112ea7db13d25d3dec5b.zip |
*** empty log message ***
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java index c3aa9d7525..5b3d5b7389 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java @@ -34,8 +34,8 @@ public static void main(String[] args) { public void handleEvent (Event event) { TableItem item = (TableItem) event.item; int index = table.indexOf (item); - int start = Math.max (0, index - PAGE_SIZE + 1); - int end = Math.min (table.getItemCount (), index + PAGE_SIZE); + int start = Math.max (0, index - PAGE_SIZE / 2); + int end = Math.min (table.getItemCount (), index + PAGE_SIZE / 2); for (int i=start; i<end; i++) { item = table.getItem (i); item.setText ("Item " + i); |