tags:

views:

30

answers:

1

Hi,

Is there a simple way to display an email body in a JComponent. Just the body is enough, I will make labels and fields like: from, to, subject, ...

It would be very easy if I could do something like this:

Message m = ...; //From the java mail lib. (javax.mail.Message)
JEmailBodyComponent c = new JEmailBodyComponent(m);
frame.add(c);

Thanks

+2  A: 

This is some example code to provide an email composition window in Swing. It should be trivial to populate the fields with the contents of an existing message.

Brian Agnew