In Pnuts, import("java.awt.event.*") adapterClass = generateEventAdapter(ActionListener, "actionPerformed") adapter = adapterClass(function (e) ...