给类所在的类库层次中添加文档会提供更高的清晰度。
Adding documentation on where the class falls in the class library hierarchy provides more clarity.
要修复这个问题,可以把类移动到类路径中指定的目录或 JAR 文件中,或者把类所在的位置添加到类路径中。
To fix this, either move the class into a directory or JAR file specified in the classpath, or add the location where the class is stored to the classpath.
它不是创建一个实现了接口的类、并将这个实现注册到需要监听的事件所在的组件上,而是创建一个EventHandler实例并注册它。
Instead of creating a class that implements an interface and registering that implementation with the component whose event you are interested in, you create an EventHandler instance and register it.
应用推荐