Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / July 2007

Tip: Looking for answers? Try searching our database.

Structuring packages in a GUI application

Thread view: 
Qu0ll - 18 Jul 2007 07:00 GMT
Let's say I have a GUI project "abc" that consists of 3 "components" each of
which has some widgets (GUI elements), model classes and controller classes.
What's the best way to structure the packages?

My first thought would be something like this:

abc.comp1.model.*
abc.comp1.view.*
abc.comp1.controller.*
abc.comp2.model.*
abc.comp2.view.*
abc.comp2.controller.*
abc.comp3.model.*
abc.comp3.view.*
abc.comp3.controller.*

but then I have seen others who structure things like:

abc.model.comp1.*
abc.model.comp2.*
abc.model.comp3.*
abc.view.comp1.*
abc.view.comp2.*
abc.view.comp3.*
abc.controller.comp1.*
abc.controller.comp2.*
abc.controller.comp3.*

Which is better and why?  Or perhaps there is a better alternative?

Signature

And loving it,

-Q
_________________________________________________
Qu0llSixFour@gmail.com
(Replace the "SixFour" with numbers to email me)

Roedy Green - 18 Jul 2007 08:19 GMT
>Which is better and why?  Or perhaps there is a better alternative?

I would tend not to break the packages down so finely.  It really
depends on how much interaction there is between members.  Don't put
things in different packages that live in each other's laps.  I don't
know how much interaction there is in your case.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.