Original Post
I'm writing a board game in java, i had all of my classes to handle mouse and keyboard events stored in seperate files. I'm trying to put all of these classes into 1 file to tidy up my code. I've put them all into a file called EventHandler. EventHandler is a public class and it contains all of the mouse and keyboard classes i need. The problem is when i try to declare an instance of one of these classes, like so: EventHandler.BoardMouse mouse = new EventHandler.BoardMouse(); I get the error: "an enclosing instance that contains EventHandler.BoardMouse is required" Does anyone know how to overcome this problem? Thanks [Edited by - furiousp on February 25, 2005 8:01:02 AM]