Results 1 to 2 of 2
  1. #1
    dracuswolf is offline Member
    Join Date
    Jul 2009
    Rep Power

    Default 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. :)



  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    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

  1. Move JTree item to another JTree.
    By Melki in forum AWT / Swing
    Replies: 8
    Last Post: 07-09-2009, 12:59 PM
  2. JTree Problem
    By ngpamela in forum XML
    Replies: 0
    Last Post: 12-10-2008, 05:10 PM
  3. Custom JTree
    By guyjasper in forum AWT / Swing
    Replies: 0
    Last Post: 10-20-2008, 05:50 PM
  4. How to display a file system in a JTree view
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-27-2008, 08:43 PM
  5. JTree trouble
    By Alantie Vala in forum AWT / Swing
    Replies: 3
    Last Post: 08-01-2007, 12:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts