Results 1 to 2 of 2
Thread: Mbox File and JTree Problem.
- 07-19-2009, 02:38 PM #1Member
- Join Date
- Jul 2009
- Rep Power
Mbox File and JTree Problem.
I have a question,
I have an mbox email file that contains a number of emails along with all its info, ie header, attachments etc.
Now i am developing a project to forensically analyse emails.
My questions is, how would i go about scanning the mbox file and extracting the following information for each email,
eg: Deleivered To info
The subject line.
I want to place this into a JTree to display in an Internal Frame. I would like the delivered to to be the parent of root and the subject line to be its child. also if there are several delivered to that are the same i would like the subject line to appear in the one delivered to so as to avoid duplicates. Essentially a hierarchical structure like a file structure except for emails.
I have tried a few approaches but cannot get a good implementation.
What data strucuture would be most efficient in this situation. I have up to this point being using arrayLists and JTrees. :)
- 07-26-2009, 06:17 AM #2
Start by creating a class to represent an e-mail. Then build a List of these classes. From there, decide how to display the contents of the list. Internal frames should only be used if you are creating a MIDI display. Just use a JFrame with a main JPanel for starting out. Also, JTree is not the best approach for displaying a simple list. If you want to categorize your e-mails, then create classes to represent your category scheme. Once you have a working model of your data, creating a UI to display it will be much easier.
- By Melki in forum AWT / SwingReplies: 8Last Post: 07-09-2009, 12:59 PM
- By ngpamela in forum XMLReplies: 0Last Post: 12-10-2008, 05:10 PM
- By guyjasper in forum AWT / SwingReplies: 0Last Post: 10-20-2008, 05:50 PM
- By Java Tip in forum javax.swingReplies: 0Last Post: 06-27-2008, 08:43 PM
- By Alantie Vala in forum AWT / SwingReplies: 3Last Post: 08-01-2007, 12:12 AM