swt MouseAdapter

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    The method addInfo() in the type new MouseAdapter(){} is not applicable for the arguments (String)

    at Test$1.mouseDown(Test.java:72)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at Test.open(Test.java:42)
    at Test.main(Test.java:27)

原文地址:https://www.cnblogs.com/zhang-pengcheng/p/4655526.html