Source Code : SWT Combo
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
SWT Combo
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
public class Ch5ComboComposite extends Composite {
public Ch5ComboComposite(Composite parent) {
super(parent, SWT.NONE);
buildControls();
}
protected void buildControls() {
setLayout(new RowLayout());
int[] comboStyles = { SWT.SIMPLE, SWT.DROP_DOWN, SWT.READ_ONLY };
for (int idxComboStyle = 0; idxComboStyle < comboStyles.length; ++idxComboStyle) {
Combo combo = new Combo(this, comboStyles[idxComboStyle]);
combo.add("Option #1");
combo.add("Option #2");
combo.add("Option #3");
}
}
}
Thank with us