Not sure if this is the right place to post but it seems most relevant. So basically i create a java form in netbeans. I create a couple of textfields, lets say 'textField1' and 'textField2'. I then create another java class called 'test'(seperate file), im assuming they're inner classes? I just right click on the package and create new class. Anyway, the class 'test' can't access/read 'textField1' and 'textField2', why is that? If 'test' is an inner class, shouldnt it have access to all of the variables and declarations within that were made in the form such as the 2x textfields? In textpad if i create a class within a class in the one file, anything declared in the outside class can be accessed from the inner class. I'm not sure whats wrong? Only just changed to netbeans any help would be appreciated =]