ALERT: New to Java
I have tried the following to make the outer class the parent to the filechooser, but it refers to OuterClass.AddBrowseActionListener instead of OuterClass:
public class OuterClass extends JFrame{
...
    class AddBrowseActionListener implements ActionListener{
        public void actionPerformed(ActionEvent event){
            JFileChooser filechooser = new JFileChooser();
            int returnValue = filechooser.showOpenDialog(this);
            File infile = filechooser.getSelectedFile();
            System.out.println(infile.getName());
        }
    }
}
I know about anonymous classes so you don't have to show me about that unless that is the only way to solve the problem.
Also, using reflection isn't really what I am looking for.
 
     
    