| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2009
Location: US
Posts: 3
|
Question About .Java File in Module
Hi Friends, I need to avoid placing all the things into one big source. So I'd like to place the different elements into separate modules. Ideally, I would like a separate .java file for each module: tile engine, vm and graphics. so, I'm confused about that how I could do that. Could anybody give me any hints or tips on how to do this ? also i'd like to tell you that I'm working with Net Beans but Not sure if that has anything to do with it. your answers would be helpful. Thanks Paul |
|
|
|
|
|
#2 (permalink) |
|
What happened?
Join Date: Jul 2008
Posts: 1,827
|
You have all your source files in one package (Netbeans does this automatically). Have one classes in each package, and then you can just reference them from other files automatically, as they are all in the same package. |
|
|
|
#3 (permalink) |
|
Senior Member
|
Classes is what you need as said above. Try this resource: What Is a Class? (The Java™ Tutorials > Learning the Java Language > Object-Oriented Programming Concepts) Infact this is generally helpful Lesson: Object-Oriented Programming Concepts (The Java™ Tutorials > Learning the Java Language) |
|
![]() |
|