📄 manageframe.java
字号:
import java.sql.*;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.JOptionPane;
class WinMan extends Frame implements ActionListener
{
Button butLos,butNet,butFor;
WinMan()
{
Panel p=new Panel();
butLos=new Button("取消挂失");
butNet=new Button("注销网上银行");
butFor=new Button("忘记密码");
butLos.addActionListener(this);
butNet.addActionListener(this);
butFor.addActionListener(this);
Box boxV=Box.createVerticalBox();
boxV.add(Box.createVerticalStrut(30));
boxV.add(butLos);
boxV.add(Box.createVerticalStrut(30));
boxV.add(butNet);
boxV.add(Box.createVerticalStrut(30));
boxV.add(butFor);
p.add(boxV);
setLayout(new BorderLayout());
add("Center",p);
}
public void actionPerformed(ActionEvent e)
{
String []s={"调用"};
if(e.getSource()==butLos)
{
MLostFrame.main(s);
}
else if(e.getSource()==butNet)
{
MNetFrame.main(s);
}
else if(e.getSource()==butFor)
{
MForgetFrame.main(s);
}
}
}
public class ManageFrame
{
public static void main(String args[])
{
WinMan window=new WinMan();
window.setBounds(100,100,300,300);
window.setVisible(true);
window.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -