?? 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;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -