Community
Participate
Working Groups
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.TraverseEvent;
import org.eclipse.swt.events.TraverseListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Point;
}
});
button.addTraverseListener(new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.detail == SWT.TRAVERSE_TAB_PREVIOUS) {
e.doit = false;
getControl().traverse(SWT.TRAVERSE_TAB_PREVIOUS);
if (e.detail == SWT.TRAVERSE_TAB_NEXT) {
getControl().traverse(SWT.TRAVERSE_TAB_NEXT);
buttonList.add(button);
/******************************************************************************
* Copyright (c) 2002, 2007 IBM Corporation and others.
* Copyright (c) 2002, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
public void widgetSelected(SelectionEvent e) {
// called when combo box selected
widgetDefaultSelected(e);
selection = comboBox.getSelectionIndex();