Java Reference
In-Depth Information
Figure 17-3. MailClient in compose mode
The code reuses the MailReaderBean presented earlier and a similar MailComposeBean for
sending mail. Example 17-10 is the main program.
Example 17-10. MailClient.java
public
public class
class MailClient
MailClient extends
extends JComponent {
private
private static
long serialVersionUID = 1L ;
/** The quit button */
JButton quitButton ;
/** The read mode */
MailReaderBean mrb ;
/** The send mode */
MailComposeFrame mcb ;
/** The Aliases panel */
AliasBean alb ;
static final
final long
/** Construct the MailClient JComponent a default Properties filename */
public
public MailClient () throws
throws Exception {
this
this ( PROPS_FILE_NAME );
}
Search WWH ::




Custom Search