I’m using NetBeans IDE to create a system.
I created an instance of a class, then I want to access this instance from a different JSwing Form. I declared the class as public, but it still doesn’t recognize the instance.
Any help?
Regards..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you need to pass this instance to your Form either in Form Constructor or by a method.
or you can make class (class of your instance) a singleton class and use a single instance in your forms.