I have two classes gameWindowand gameEngine. The main method is in the class gameWindow, as well as the swinging GUI code. Now I want to access swing's components gameEngine. How to do it? I always get an error cannot find symbolwhen I try this is normal. I tried to make the components public, but no luck.
In addition, I tried to create an instance gameWindow, but it did not help either. It compiled without any errors, but I had a BIG error at runtime (which I donβt even see, the command prompt scrolls to the limit).
CFM !!
PS: I do not think that posting the code here will help.
source
share