📄 manager.java~6~
字号:
package atm;
import javax.swing.*;
import java.awt.*;
import com.borland.jbcl.layout.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Font;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Connection;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Manager extends JFrame{
public Manager() {
super();
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
public static void main(String[] args) {
Manager manager = new Manager();
manager.show();
}
private void jbInit() throws Exception {
jPanel1.setBackground(new Color(49, 106, 183));
jPanel1.setLayout(xYLayout1);
jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 25));
jLabel1.setForeground(Color.white);
jLabel1.setText("请选择功能");
jLabel2.setFont(new java.awt.Font("隶书", Font.PLAIN, 40));
jLabel2.setForeground(Color.white);
jLabel2.setText("中国银行");
jButton3.addActionListener(new Manager_jButton3_actionAdapter(this));
this.getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
jButton2.setText("取出人民币");
jButton3.setText("查询机内余额");
jPanel1.add(jLabel2, new XYConstraints(110, 71, -1, -1));
jPanel1.add(jLabel1, new XYConstraints(124, 177, -1, -1));
jPanel1.add(jButton3, new XYConstraints(124, 257, 119, -1));
jPanel1.add(jButton1, new XYConstraints(124, 328, 119, -1));
jPanel1.add(jButton2, new XYConstraints(124, 401, 120, -1));
jButton1.setText("存入人民币");
this.getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
setSize(450,550);
setVisible(true);
}
JPanel jPanel1 = new JPanel();
JButton jButton1 = new JButton();
XYLayout xYLayout1 = new XYLayout();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
public void jButton3_actionPerformed(ActionEvent e) {
Fecth fecth=new Fecth();
fecth.setVisible(false);
}
}
class Manager_jButton3_actionAdapter implements ActionListener {
private Manager adaptee;
Manager_jButton3_actionAdapter(Manager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -