本文整理匯總了Java中org.eclipse.swt.widgets.Combo.setBounds方法的典型用法代碼示例。如果您正苦於以下問題:Java Combo.setBounds方法的具體用法?Java Combo.setBounds怎麽用?Java Combo.setBounds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.swt.widgets.Combo
的用法示例。
在下文中一共展示了Combo.setBounds方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: comboWidget
import org.eclipse.swt.widgets.Combo; //導入方法依賴的package包/類
public Combo comboWidget(Composite parent, int style, int[] bounds,
String[] items, int selectionIndex) {
Combo comboBox = new Combo(parent, style);
comboBox.setBounds(bounds[0], bounds[1], bounds[2], bounds[3]);
comboBox.setItems(items);
comboBox.select(selectionIndex);
return comboBox;
}
示例2: createComboText
import org.eclipse.swt.widgets.Combo; //導入方法依賴的package包/類
/**
* This method initializes comboText
*
*/
private void createComboText() {
comboText = new Combo(groupColor, SWT.NONE);
comboText.setBounds(new org.eclipse.swt.graphics.Rectangle(100,22,93,21));
comboText.setItems(new String[] { "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white" });
}
示例3: createComboBkgrd
import org.eclipse.swt.widgets.Combo; //導入方法依賴的package包/類
/**
* This method initializes comboBkgrd
*
*/
private void createComboBkgrd() {
comboBkgrd = new Combo(groupColor, SWT.NONE);
comboBkgrd.setBounds(new org.eclipse.swt.graphics.Rectangle(100,51,93,21));
comboBkgrd.setItems(new String[] { "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white" });
}