Hello all;
I am trying to display an email message using Swing. The code is
straight from Sun's tutorial, but I'm still getting a blank JFrame.
The message is retrieved without a problem. I can print it out with
System.out.println, so I am sure it retrieves the message, but it's in
HTML format, so I want to use a JEditorFrame as follows:
if (message[i].getContentType().equals("TEXT/HTML;
charset=iso-8859-1")) {
// This returns true!
String content = (String)message[i].getContent();
JFrame frame = new JFrame();
JEditorPane text = new JEditorPane("text/html", content);
JScrollPane pane = new JScrollPane(text);
frame.setSize(300, 300);
Any ideas as to why the frame is blank?
Thanks for any help.