• 大小: 56KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-28
  • 语言: Java
  • 标签: java  example  

资源简介

一个简单的java程序,一个银行账户的管理系统,用MySQL做数据库,java做底层操作及窗口

资源截图

代码片段和文件信息

package client;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.Layoutstyle;
import javax.swing.WindowConstants;

public class Accueil extends Jframe implements ActionListener{

JPanel pane;
JLabel accueil bienvenu;
JTextField nom;
JButton operation changePassword deconnecter;
    public Accueil() {
        initComponents();
    }

    private void initComponents() {

setBounds(550 250 400 320);
settitle(“Bienvenu“);

     pane = new JPanel();
        accueil = new JLabel();
        bienvenu = new JLabel();
        nom = new JTextField();
        operation = new JButton();
        deconnecter = new JButton();
        changePassword = new JButton();

        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        accueil.setText(“Accueil“);

        bienvenu.setText(“Bienvenue “);
        nom.setText(Connexion.list.get(2)+“ “+Connexion.list.get(3));

        operation.setText(“Nouvelle opération“);
        operation.addActionListener(this);
        changePassword.setText(“Modifier votre mot de passe“);
        changePassword.addActionListener(this);
        deconnecter.setText(“Déconnection“);
        deconnecter.addActionListener(this);
        GroupLayout layout = new GroupLayout(pane);
        pane.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(accueil))
                    .addGroup(GroupLayout.Alignment.TRAILING layout.createSequentialGroup()
                        .addContainerGap(195 Short.MAX_VALUE)
                        .addComponent(deconnecter GroupLayout.PREFERRED_SIZE 120 GroupLayout.PREFERRED_SIZE))
                    .addGroup(GroupLayout.Alignment.TRAILING layout.createSequentialGroup()
                        .addGap(81 81 81)
                        .addGroup(layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                            .addComponent(operation GroupLayout.Alignment.LEADING GroupLayout.DEFAULT_SIZE 169 Short.MAX_VALUE)
                            .addComponent(changePassword GroupLayout.Alignment.LEADING GroupLayout.DEFAULT_SIZE 169 Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(Layoutstyle.ComponentPlacement.RELATED 116 Short.MAX_VALUE)
                                .addComponent(bienvenu)))
                        .addPreferredGap(Layoutstyle.ComponentPlacement.RELATED)
                        .addComponent(n

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        478  2010-05-25 00:21  Banque\.classpath

     文件        382  2010-05-25 00:20  Banque\.project

     文件       5321  2010-05-25 03:51  Banque\bin\client\Accueil.class

     文件       5462  2010-05-25 05:48  Banque\bin\client\ChoixOperation.class

     文件       5919  2010-05-25 03:28  Banque\bin\client\Connecter.class

     文件       4094  2010-05-26 01:38  Banque\bin\client\Connexion.class

     文件       5991  2010-05-26 01:47  Banque\bin\client\DeposerCheque.class

     文件       5960  2010-05-26 01:48  Banque\bin\client\DeposerLiquide.class

     文件       3221  2010-05-25 06:24  Banque\bin\client\InfoCompte.class

     文件       4907  2010-05-25 21:00  Banque\bin\client\ModifierMDP.class

     文件       6514  2010-05-26 01:49  Banque\bin\client\Paiement.class

     文件       6214  2010-05-26 01:49  Banque\bin\client\Retirer.class

     文件       5012  2010-05-25 02:54  Banque\bin\client\SoldeCompte.class

     文件       5981  2010-05-25 20:59  Banque\bin\client\Virement.class

     文件       7615  2010-05-26 01:41  Banque\bin\server\Server$ChatTask.class

     文件       1788  2010-05-26 01:41  Banque\bin\server\Server.class

     文件       5134  2010-05-25 03:51  Banque\compte\client\Accueil.java

     文件       7280  2010-05-25 05:48  Banque\compte\client\ChoixOperation.java

     文件       6383  2010-05-25 03:28  Banque\compte\client\Connecter.java

     文件       4183  2010-05-26 01:38  Banque\compte\client\Connexion.java

     文件       5839  2010-05-26 01:47  Banque\compte\client\DeposerCheque.java

     文件       5814  2010-05-26 01:48  Banque\compte\client\DeposerLiquide.java

     文件       2729  2010-05-25 06:24  Banque\compte\client\InfoCompte.java

     文件       5182  2010-05-25 21:00  Banque\compte\client\ModifierMDP.java

     文件       7228  2010-05-26 01:49  Banque\compte\client\Paiement.java

     文件       5985  2010-05-26 01:49  Banque\compte\client\Retirer.java

     文件       5182  2010-05-25 02:54  Banque\compte\client\SoldeCompte.java

     文件       6615  2010-05-25 20:59  Banque\compte\client\Virement.java

     文件       8295  2010-05-26 01:41  Banque\compte\server\Server.java

     目录          0  2010-05-25 06:09  Banque\bin\client

............此处省略9个文件信息

评论

共有 条评论