dcsimg
Large Class File Organization Techniques
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Raymond_Glaser
Posted On:   Friday, August 3, 2001 07:48 AM

Where can I find recommendations on how to structure my Java code for a "swing" application. The mainframe class is getting too big. New to Java , but not new to programming. In C++ I can split my class methods up into discrete files, but it doesn't appear that I can do the same in Java.

Re: Large Class File Organization Techniques

Posted By:   Luigi_Viggiano  
Posted On:   Friday, August 3, 2001 03:07 PM

Something is wrong with your app design: try to locate "entities" and "actors" and define classes to group all method them belong of. Read about "design patterns" to recognize factories, proxies, builders etc... in you code. You shall also split out the code controlling the data (controllers) from the application presentation (view) and from code handling data (model). In a good design you'll have many classes whom takes care just of what they shall do and nothing else.
About | Sitemap | Contact