This question already has an answer here:
What does a “Cannot find symbol” compilation error mean?
You can make that string variable to which you are saving the input from the JOption dialog box as a public global variable. That should make it accessible from inner classes. This question might be helpful to learn about inheritance. it should show you how to set variables so they can be inherited correctly. Difference between private, public, and protected inheritance