⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 infordialog.java

📁 JAVA 方法写的 ATM自助银行系统 代码清晰明了
💻 JAVA
字号:
package ATM_Dialog;

import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;

import ATM_Events.NumberEvent;
import ATM_Frame.ATM_window;
import ATM_ToolClass.DateTime;

public class InforDialog extends JDialog{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Container container;
	JLabel takeoutmoney,title,time;
	public InforDialog(ATM_window aw){
		super(aw,true);
		this.setTitle("清单信息");
		this.setBounds(aw.getX()+20, aw.getY()+100, 360, 300);
		container=this.getContentPane();
		container.setLayout(null);
		
		
		title=new JLabel("欢迎使用本银行ATM取款机,本次操作信息: ");
	    title.setBounds(50, 20, 300, 30);
	    container.add(title);
	    
	    takeoutmoney=new JLabel("本次取款金额为: "+String.valueOf(ATM_window.getTakeoutMoney())+"元");
	    takeoutmoney.setBounds(30, 55, 200, 30);
	    container.add(takeoutmoney);
	    
	    time=new JLabel("本次操作结束日期时间为: "+new DateTime().Format());
	    time.setBounds(30, 90, 300, 30);
	    container.add(time);
		
		JButton ok=new JButton("确定");
		ok.setBounds(150, 185, 60, 35);
		ok.addActionListener(new ActionListener(){

			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});
		
		container.add(ok);
		
		
		this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		this.setVisible(true);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -