JFace dialog 禁用默认 Enter 按键
重写 方法
createButtonsForButtonBar
@Override
protected void createButtonsForButtonBar(Composite parent) {
Button button = createButton(parent, IDialogConstants.OK_ID,
IDialogConstants.OK_LABEL, false);
}
本文来自博客园,作者:margo,转载请注明原文链接:https://www.cnblogs.com/ZMargo/articles/13304397.html