1个回答
展开全部
您好,SWT这样也行。按回车键后变为TAB :
TraverseListener traverseListener = new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.keyCode == 13) {
e.detail = SWT.TRAVERSE_TAB_NEXT;
e.doit = true;
}
}
};
text1.addTraverseListener(traverseListener);
text2.addTraverseListener(traverseListener);
TraverseListener traverseListener = new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.keyCode == 13) {
e.detail = SWT.TRAVERSE_TAB_NEXT;
e.doit = true;
}
}
};
text1.addTraverseListener(traverseListener);
text2.addTraverseListener(traverseListener);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询