Sunday February 04, 2007
JavaMail Client on the NetBeans Platform (Step 4)
Ultimately, the subject lines of the e-mails (as well as other details such as date and sender) should end up in the Navigator, I think, but in the meantime I've just sent them to the Output window and implemented an OutputListener. Subject lines (and date and sender) are sent to the Output window when "Open Messages" is selected on a folder in the explorer. Subject lines become hyperlinks in the Output window. Then, when a hyperlink is clicked, the related e-mail is opened in the IDE's HTML editor and also in the Swing browser:

I wish the Swing browser were better, or that we could bundle Rich's NetBeans/JDIC native web browser integration for Windows. That would make the end result, at least on Windows, quite a lot prettier. However, there's clearly some progress in our porting procedure, from our original Swing application to a modular NetBeans Platform application. Next step is using the Navigator to display subject lines and so on.
By the way, notice that we now actually have a functioning mail browser, albeit a pretty basic one. It looks a lot more like a typical NetBeans Platform application than our simple TopComponent integration, back in step 2 of this series.
Feb 04 2007, 07:44:07 AM PST Permalink


