The package java.awt.event is not accessible code example Example: The package java.awt.event is not accessible //add this "module-info.java" requires java.desktop;