i have three java files that i want to link them using menus.can any one help?
Printable View
i have three java files that i want to link them using menus.can any one help?
What do you mean link them, and what are the 'java files'? Give us all the information available - make it easy for us to help you - otherwise we are left guessing which is not productive.
What does that mean? Basically, you're going to have to have a reference to an instance of ClassB inside ClassA to be able to use it. You do that by instantiating ClassB in ClassA.
Edit- I was too slow, and I agree with everything copeg already told you.
Well, you need menus to link those files. So, what is the problem?
Are those three files are java forms or class files?
If Java forms, then behind every menu, write the code to open up that form and if those are class files, i don't know if you really need to link, just instantiate the class object and start doing what you want.
Well copeg has said right. Tell us the exact problem, so that we could help you easily.