Results 1 to 1 of 1
- 03-26-2009, 12:12 AM #1
Member
- Join Date
- Feb 2009
- Posts
- 6
- Rep Power
- 0
Should I separate my code into separate files?
Not quite sure where to post this... Hope here is fine!
I am attempting to make a *highly* simplified DBMS-style system in Netbeans 6.5. I started with the Database Application Example template and built up my application on top of it.
I now have several tables, and I am using multiple jInternalFrames in a jDesktopPane to lay it all out in an accessible manner. This all works more or less fine.
My problem is this: all of the code for the internal frames is in the single "DBView" source .java file. This is a lot of code (and even more including the collapsed GUI builder code). This makes it rather hard to read, let alone understand!
I was wondering- what could a better way to set out my code? Is using separate class files for each jInternalFrame a possibility? Separate classes for processes? Would I still be able to use the GUI builder?
I tried this preliminarily, but quickly realised I'd have to give loads of things public access, and it gave me a headache.
I have no idea how I'd even begin to set about this! Suggestions, links to helpful tutorials, etc etc... all appreciated! Fingers crossed, thanks in advance.
Similar Threads
-
Access Remote Session Bean from an separate web app
By kiyoharatakuya in forum Enterprise JavaBeans (EJB)Replies: 4Last Post: 04-24-2009, 03:46 PM -
LOG4j Logging in Separate Files for Threads
By krishna_85 in forum New To JavaReplies: 0Last Post: 03-05-2009, 04:23 PM -
combining two separate codes into one
By jaiminparikh in forum Advanced JavaReplies: 22Last Post: 02-18-2009, 05:35 PM -
Hash table with separate chaining
By Java Tip in forum java.langReplies: 0Last Post: 04-12-2008, 08:42 PM -
I'm trying to add a separate dialog to a Java program...
By romina in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 05:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks