2011-03-16 97 views

回答

0

將焦點設置到下拉框中:

focusManager.setFocus(myComboBox); 
1

作爲保存過程的一部分,只需檢查以確保選擇了某些內容。事情是這樣的:

if(myComboBox.selectedIndex >-1){ 
    Alert.show('You must select an item in myComboBox','Error'); 
    return; 
} 
// perform other save operations 
+0

10Q Flextras多了一個疑問,如何着力於組合框後顯示警報...... – 2011-03-16 06:25:03

+0

@Hari看那至於別人說,您可以使用focusManager將焦點設置在組合框上。 – JeffryHouser 2011-03-16 18:18:05