i have three java files that i want to link them using menus.can any one help?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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.
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
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.