Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-26-2008, 06:41 AM
JT4NK3D's Avatar
Member
 
Join Date: Nov 2007
Posts: 50
JT4NK3D is on a distinguished road
[SOLVED] project layout
I want to start a project (i'm using BlueJ IDE) but im not really sure how to organize it. Im going to have 1 driver class and then other classes with all the code and methods that the driver class will use, and among those maybe some interfaces, but I need some kind of structure to start with. Can someone please give me a typical layout to help me get started? If someone could post something like e.g.
driver class
_____________|_____________
| | | |
class1 class2 class 3 class4
|_______| |_______|
| |
interface1 interface 2

Not that, thats just the general idea but i really dont know very much about making projects with lots of different classes etc. this is probably a noobish question but i dont know how im gonna start it please someone answer.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-26-2008, 07:23 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 263
roots is on a distinguished road
Code organization is an important aspect in programming. If you have general idea on how your classes will be. Divide them according to their functionality. For example separate the part that is related to database, user interface and so on. Put them in separate packages.
There is no hard and fast rule for the organization. Its all about making whole project easily comprehensible.
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-26-2008, 07:31 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
All depends on your skills. Such organizing can't learn by a book, you have to make a right decision and go ahead.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-26-2008, 09:02 AM
Member
 
Join Date: May 2008
Posts: 17
greyhat is on a distinguished road
it depends on your scenario and skills
__________________
Rgds
GreyHat
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and ya keep
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 05-26-2008, 09:38 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
It's a good practice
Quote:
Originally Posted by JT4NK3D View Post
Not that, thats just the general idea but i really dont know very much about making projects with lots of different classes etc. this is probably a noobish question but i dont know how im gonna start it please someone answer.
One of the basis idea in OOP is collect much similar process into one place. Make a class and put them inside it. You can make any number of classes, (as well as any number of methods in a single class) to make clear your project.

So always think about the common views of each other. Make all names(classes, methods, fields) in descriptive way, more depend on the class you work out.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 05-26-2008, 04:25 PM
JT4NK3D's Avatar
Member
 
Join Date: Nov 2007
Posts: 50
JT4NK3D is on a distinguished road
Thanks, I have a better idea of what to do now. So should i just make all the other classes that the driver class uses subclasses of the driver class?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 05-27-2008, 05:23 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Yes, start from subclasses implementations. It's the much better way to do it.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Border Layout mark-mlt Java Applets 5 05-12-2008 11:48 AM
SWT Layout JavaForums Java Blogs 0 12-31-2007 06:53 PM
Help with JButton and layout adlb1300 AWT / Swing 1 12-25-2007 10:33 AM
Layout Managers gmioannou AWT / Swing 1 12-24-2007 06:12 AM
Help with Grid Layout coco AWT / Swing 1 08-06-2007 10:03 PM


All times are GMT +3. The time now is 03:57 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org