Java Reference
In-Depth Information
jf
.
setVisible
(
true
true
);
}
}
It's a minimal, but working, mail reader. We'll merge it with a mail sender in
Program:
MailClient
to make a complete mail client program.
Program: MailClient
This program is a simplistic GUI-based mail client. It uses the Swing GUI components (see
Chapter 14
)
along with JavaMail. The program loads a Properties file (see
Storing Strings in
Properties and Preferences
)
to decide which mail server to use for outgoing mail (see
Send-
ing Email: For Real
)
, as well as the name of a mail server for incoming mail and a
Store
simply a
JComponent
with a
JTabbedPane
to let you switch between reading mail and send-
ing mail.
When first started, the program behaves as a mail reader, as shown in
Figure 17-2
.