Results 1 to 2 of 2
Thread: Mbox File and JTree Problem.
- 07-19-2009, 01:38 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Mbox File and JTree Problem.
Hi everyone,
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. :)
Regards,
Dracuswolf.
- 07-26-2009, 05: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.
Similar Threads
-
Move JTree item to another JTree.
By Melki in forum AWT / SwingReplies: 8Last Post: 07-09-2009, 11:59 AM -
JTree Problem
By ngpamela in forum XMLReplies: 0Last Post: 12-10-2008, 04:10 PM -
Custom JTree
By guyjasper in forum AWT / SwingReplies: 0Last Post: 10-20-2008, 04:50 PM -
How to display a file system in a JTree view
By Java Tip in forum javax.swingReplies: 0Last Post: 06-27-2008, 07:43 PM -
JTree trouble
By Alantie Vala in forum AWT / SwingReplies: 3Last Post: 07-31-2007, 11:12 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks