我正在尝试在按钮单击事件中打开SWT 文件浏览器。
tnAddFiles.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
new FileBrowser();
}
});
我收到此错误
Exception in thread "main" org.eclipse.swt.SWTError: Not implemented [multiple displays]
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:706)
at org.eclipse.swt.widgets.Display.create(Display.java:807)
at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
at com.rawzor.ui.FileBrowser.<init>(FileBrowser.java:34)