91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 11KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-11
  • 語言: Java
  • 標(biāo)簽: java??Mysql??

資源簡介

存款 注冊 取款 轉(zhuǎn)賬 查詢 修改 等功能 使用 java 和 mysql

資源截圖

代碼片段和文件信息

package?MyDemo;

import?javax.swing.*;
import?java.awt.*;
import?java.awt.event.*;

public?class?a?extends?Jframe?{
static?TextField?Kahao=new?TextField(“1“20);
static?JPasswordField?Mima=new?JPasswordField(“110“15);
static?boolean?weiyi=false;
public?a(){

Jframe?f=new?Jframe(“銀行管理系統(tǒng)“);
f.setBounds(200100700600);
f.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
f.setResizable(false);?
Container?c=getContentPane();???//必須繼承Jframe類
c.setLayout(null);?
c.setBackground(Color.blue);//不采用任何布局方式
f.add(c);

JLabel?label1=new?JLabel(“歡迎您進(jìn)入銀行管理系統(tǒng)“);??
JLabel?label2=new?JLabel(“銀?行?卡?號:“);??
JLabel?label3=new?JLabel(“銀行卡密碼:“);?

label1.setFont(new?Font(“Serif“Font.BOLD40));
label1.setForeground(Color.WHITE);
//label1.setBounds(300200400300);??//改變標(biāo)簽位置???錯誤
label2.setFont(new?Font(“Serif“Font.BOLD20));
label2.setForeground(Color.WHITE);
label3.setFont(new?Font(“Serif“Font.BOLD20));
label3.setForeground(Color.WHITE);

JButton?button1=new?JButton(“登錄“);
JButton?button2=new?JButton(“注冊“);

BHandler?h=new?BHandler();
button1.addActionListener(h);
button2.addActionListener(h);

JPanel?p1=new?JPanel();??
JPanel?p2=new?JPanel();??
JPanel?p3=new?JPanel();?
JPanel?p4=new?JPanel();?
????p1.setBounds(00700200);???????//改變面板位置??錯誤
p1.setBackground(Color.blue);
p1.add(label1);
p2.setBounds(020070050);?
p2.setBackground(Color.blue);
p2.add(label2);
p2.add(Kahao);
p3.setBounds(025070050);?
p3.setBackground(Color.blue);
p3.add(label3);
p3.add(Mima);
p4.setBounds(035070070);???????//改變面板位置??錯誤
p4.setBackground(Color.blue);
p4.add(button1);
p4.add(button2);
c.add(p1);
c.add(p2);
c.add(p3);
c.add(p4);
f.setVisible(true);
?????????}

public?static?void?main(String?args[]){
a?b=new?a();


}



public?class?BHandler?implements?ActionListener?{
public?void?actionPerformed?(ActionEvent?event)?{
if(event.getActionCommand()==“注冊“)
{
Zc?zhuce=new?Zc();
//zhuce.validate();
}
else?if(event.getActionCommand()==“登錄“)
{
????????????if(Denlu.checkUser(Kahao.getText()Mima.getText())==1&&weiyi==false)
???????????
??{
???????????? weiyi=true;
????????????JOptionPane.showMessageDialog(a.this“登錄成功!“);
Zhuye?zhu=new?Zhuye();
??}
???????????else?if(weiyi==true)
???????????{
???????????? JOptionPane.showMessageDialog(a.this“請先退出已經(jīng)登錄的用戶!“);
???????????}
???????????else
???????????{
???????? ???JOptionPane.showMessageDialog(a.this“卡號或者密碼不正確!“);
???????????}
}
else
{
}
}
}
???}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2755??2017-12-19?11:24??MyDemo\a.java

?????文件???????3465??2017-12-19?11:29??MyDemo\Chaxun.java

?????文件???????1436??2017-12-19?11:24??MyDemo\Cunkuan.java

?????文件???????7613??2017-12-19?11:24??MyDemo\Denlu.java

?????文件???????1537??2017-12-19?11:24??MyDemo\Qukuan.java

?????文件???????1359??2017-12-19?11:29??MyDemo\Xianshi.java

?????文件???????2197??2017-12-19?11:29??MyDemo\Xiugai.java

?????文件???????3650??2017-12-19?11:24??MyDemo\Zc.java

?????文件???????2001??2017-12-19?11:29??MyDemo\Zhuanzhang.java

?????文件???????4401??2017-12-19?11:33??MyDemo\Zhuye.java

?????目錄??????????0??2017-12-19?11:33??MyDemo

-----------?---------??----------?-----??----

????????????????30414????????????????????11


評論

共有 條評論