📄 smtppop3config.java
字号:
package jws.awt.net;
// Copyright 1997, John Webster Small
// All rights Reserved
import jws.awt.*;
import java.awt.*;
import java.awt.event.*;
public class SMTPPOP3Config
{
private SMTPwConfig smtp;
private POP3wConfig pop3;
public SMTPPOP3Config(SMTPwConfig smtp, POP3wConfig pop3)
{
this.smtp = smtp;
this.pop3 = pop3;
}
public boolean configure(Frame parent, String title)
{
final WinDialog wd =
new WinDialog(parent,title,true);
wd.add("North",smtp.configurePanel());
wd.add("Center",pop3.configurePanel());
Panel p = new Panel();
Button applyButton = new Button("Apply");
p.add(applyButton);
Button cancelButton = new Button("Cancel");
p.add(cancelButton);
wd.add("South",p);
wd.pack();
applyButton.addActionListener
(
new ActionListener()
{
public void actionPerformed(ActionEvent e)
{ wd.apply(); wd.dispose(true); }
}
);
cancelButton.addActionListener
(
new ActionListener()
{
public void actionPerformed(ActionEvent e)
{ wd.dispose(); }
}
);
wd.setVisible(true);
return wd.ok;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -