This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Viewing email on swing

 
siyabonga khanyile
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm getting emails from the exchange server and saving them on the file system as .eml files for later use. is there any way or library that i can use to display the original the files on a Jframe, something like icepdf that takes a pdf file and display it on a Jframe.

Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With JavaMail you can read them. Then there are a few options:
- it's a plain text email (with or without attachments). A JTextArea will display your body just fine.
- it's an HTML email (with or without attachments). A non-editable JEditorPane will display your body just fine, except for embedded images.
- it's an email with both plain text and HTML parts (multipart/alternative). Choose which one to show.

The embedded images will be the main issue here.
 
siyabonga khanyile
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was thinking along the same line as well, but i just thought there might be a lib that you can use so that you don't have to go through the message body and check for different content types or disposition. I guess i'l just have to do it that way then. Thanks a mil
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, there might be, and if there is one it may have solved the embedded contents issue. Perhaps someone else knows of such a library. I just don't.
 
siyabonga khanyile
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yah maybe there is...but i think i've searched almost the whole internet now
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out the lobo browser
Note I haven't used it myself but I think it is embed able in other components.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic