'this' doesn't refer to anything in that context. You must create an instance of your class
exitItem.addActionListener(new Project());
See Common Java Mistakes, a few posts down.
Type: Posts; User: copeg
'this' doesn't refer to anything in that context. You must create an instance of your class
exitItem.addActionListener(new Project());
See Common Java Mistakes, a few posts down.