• 大小: 26KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: Java
  • 标签: study  

资源简介

一个简单的ui界面,希望能够帮助到你

资源截图

代码片段和文件信息

package banking9;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;



public class BankUserUI extends Jframe {
JButton jb1 jb2 jb3jb4jb5jb6jb7 jb8;  
    JLabel jlb1 jlb2 jlb3;   
    
    
    
    public BankUserUI() {
     Container  p=getContentPane();
     JPanel c=new JPanel();
     JPanel d=new JPanel();
     settitle(“银行管理系统“);
     jb1 = new JButton(“查询账户“);
        jb2 = new JButton(“创建新账户“);
        jb3 = new JButton(“修改账户“);
        jb4 = new JButton(“删除账户“);
        jb5 = new JButton(“显示所有账户信息“);
       jb1.addActionListener(new ActionListener1());
       jb2.addActionListener(new ActionListener2());
       jb3.addActionListener(new ActionListener3());
       jb4.addActionListener(new ActionListener4());
       jb5.addActionListener(new ActionListener5());

  
    jlb3 = new JLabel(“选择服务“);
    jlb3.setFont(new   java.awt.Font(“Dialog“   1   22));
    
    

    jlb3.setBounds(15025015050);


    c.add(jb1);
    c.add(jb2);
    c.add(jb3);
    c.add(jb4);
    c.add(jb5);
 
    d.add(jlb3);
    p.add(dBorderLayout.NORTH);
    p.add(cBorderLayout.CENTER);
    this.setDefaultCloseOperation(EXIT_ON_CLOSE); 
    this.pack();
    this.setVisible(true);  
  

    }
   
public static void main(String[] args) {
BankUserUI a=new BankUserUI();

}
 class  ActionListener1 implements ActionListener{

     @Override
     public void actionPerformed(ActionEvent e) {
     new Login(e.getActionCommand());

     }
    
}
 
 class  ActionListener2 implements ActionListener{

     @Override
     public void actionPerformed(ActionEvent e) {
    
     new Register();
     }
    
}
 class  ActionListener3 implements ActionListener{

     @Override
     public void actionPerformed(ActionEvent e) {
    
      new Modify();
     }
    
}
 class  ActionListener4 implements ActionListener{

     @Override
     public void actionPerformed(ActionEvent e) {
      new Delate();
     }
    
}
 class  ActionListener5 implements ActionListener{

     @Override
     public void actionPerformed(ActionEvent e) {
     // TODO Auto-generated method stub
      
     }
    
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-13 23:39  BankUserUI\
     文件         301  2018-11-13 23:39  BankUserUI\.classpath
     文件         386  2018-11-13 23:39  BankUserUI\.project
     目录           0  2018-11-13 23:39  BankUserUI\.settings\
     文件         598  2018-11-13 23:39  BankUserUI\.settings\org.eclipse.jdt.core.prefs
     目录           0  2018-11-25 08:25  BankUserUI\bin\
     目录           0  2018-11-25 08:25  BankUserUI\bin\banking9\
     文件         805  2018-11-25 08:25  BankUserUI\bin\banking9\BankUserUI$ActionListener1.class
     文件         691  2018-11-25 08:25  BankUserUI\bin\banking9\BankUserUI$ActionListener2.class
     文件         689  2018-11-25 08:25  BankUserUI\bin\banking9\BankUserUI$ActionListener3.class
     文件         689  2018-11-25 08:25  BankUserUI\bin\banking9\BankUserUI$ActionListener4.class
     文件         653  2018-11-25 08:25  BankUserUI\bin\banking9\BankUserUI$ActionListener5.class
     文件        2403  2018-11-25 08:25  BankUserUI\bin\banking9\BankUserUI.class
     文件        1539  2018-11-25 08:25  BankUserUI\bin\banking9\Delate.class
     文件        2661  2018-11-25 08:25  BankUserUI\bin\banking9\Login.class
     文件        1539  2018-11-25 08:25  BankUserUI\bin\banking9\Modify.class
     文件        2544  2018-11-25 08:25  BankUserUI\bin\banking9\Register.class
     目录           0  2018-11-25 08:25  BankUserUI\bin\domain\
     文件         850  2018-11-25 08:25  BankUserUI\bin\domain\Account.class
     文件        1601  2018-11-25 08:25  BankUserUI\bin\domain\Bank.class
     文件         848  2018-11-25 08:25  BankUserUI\bin\domain\CheckingAccount.class
     文件        1875  2018-11-25 08:25  BankUserUI\bin\domain\Customer.class
     文件         516  2018-11-25 08:25  BankUserUI\bin\domain\OverdraftException.class
     文件         402  2018-11-25 08:25  BankUserUI\bin\domain\SavingsAccount.class
     目录           0  2018-11-25 08:25  BankUserUI\bin\reports\
     文件        2096  2018-11-25 08:25  BankUserUI\bin\reports\CustomerReport.class
     目录           0  2018-11-13 23:40  BankUserUI\src\
     目录           0  2018-11-13 23:44  BankUserUI\src\banking9\
     文件        2489  2018-11-13 23:47  BankUserUI\src\banking9\BankUserUI.java
     文件        1125  2018-11-13 23:44  BankUserUI\src\banking9\Delate.java
     文件        1933  2018-11-13 23:47  BankUserUI\src\banking9\Login.java
............此处省略11个文件信息

评论

共有 条评论

相关资源