/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Welcome.java
*
* Created on 2009-9-1, 14:31:47
*/
package client;
/**
*
* @author Administrator
*/
public class Welcome extends javax.swing.JFrame {
/** Creates new form Welcome */
Client myClient;
public Welcome(Client myClient) {
this.myClient = myClient;
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
remainButton = new javax.swing.JButton();
depositButton = new javax.swing.JButton();
withdrawButton = new javax.swing.JButton();
transferButton = new javax.swing.JButton();
codeButton = new javax.swing.JButton();
deleteButton = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
remainButton.setFont(new java.awt.Font("微软雅黑", 1, 12)); // NOI18N
remainButton.setText("查询余额");
remainButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
remainButtonActionPerformed(evt);
}
});
depositButton.setFont(new java.awt.Font("微软雅黑", 1, 12)); // NOI18N
depositButton.setText("存款");
depositButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
depositButtonActionPerformed(evt);
}
});
withdrawButton.setFont(new java.awt.Font("微软雅黑", 1, 12)); // NOI18N
withdrawButton.setText("取款");
withdrawButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
withdrawButtonActionPerformed(evt);
}
});
transferButton.setFont(new java.awt.Font("微软雅黑", 1, 12)); // NOI18N
transferButton.setText("汇款");
transferButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
transferButtonActionPerformed(evt);
}
});
codeButton.setFont(new java.awt.Font("微软雅黑", 1, 12)); // NOI18N
codeButton.setText("修改密码");
codeButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
codeButtonActionPerformed(evt);
}
});
deleteButton.setFont(new java.awt.Font("微软雅黑", 1, 12)); // NOI18N
deleteButton.setText("退出");
deleteButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteButtonActionPerformed(evt);
}
});
jLabel1.setFont(new java.awt.Font("黑体", 1, 24)); // NOI18N
jLabel1.setText("欢迎来到虚拟银行!");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(22, 22, 22)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(deleteButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(codeButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(transferButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(withdrawButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(remainButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(depositButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(27, 27, 27)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(31, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addComponent(remainButton)
.addGap(18, 18, 18)
.addComponent(depositButton)
.addGap(18, 18, 18)
.addComponent(withdrawButton)
.addGap(18, 18, 18)
.addComponent(transferButton)
.addGap(18, 18, 18)
.addComponent(codeButton)
.addGap(18, 18, 18)
.addComponent(deleteButton)))
.addContainerGap(39, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void remainButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_remainButtonActionPerformed
// TODO add your handling code here:
myClient.myOrder.getCurrentBalance();
while (true) {
if (myClient.myMonitor.gotit) {
dispose();
new Remain(myClient).setVisible(true);
myClient.getMyMonitor().setGotit(false);
break;
}
}
}//GEN-LAST:event_remainButtonActionPerformed
private void depositButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_depositButtonActionPerformed
// TODO add your handling code here:
dispose();
new Deposit(myClient).setVisible(true);
}//GEN-LAST:event_depositButtonActionPerformed
private void withdrawButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_withdrawButtonActionPerformed
// TODO add your handling code here:
dispose();
new Withdraw(myClient).setVisible(true);
}//GEN-LAST:event_withdrawButtonActionPerformed
private void transferButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transferButtonActionPerformed
// TODO add your handling code here:
dispose();
new Transfer(myClient).setVisible(true);
}//GEN-LAST:event_transferButtonActionPerformed
private void codeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_codeButtonActionPerformed
// TODO add your handling code here:
dispose();
new NewCode(myClient).setVisible(true);
}//GEN-LAST:event_codeButtonActionPerformed
private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
没有合适的资源?快使用搜索试试~ 我知道了~
银行 java IDE=NetBeans ^0^
共226个文件
html:101个
class:59个
java:31个
需积分: 10 13 下载量 30 浏览量
2009-12-04
21:41:07
上传
评论
收藏 337KB RAR 举报
温馨提示
暑假写的 可以作为java学习很好的资料 其实银行是一个很好的练手的项目 包含了多线程 网络等知识
资源推荐
资源详情
资源评论
收起资源包目录
银行 java IDE=NetBeans ^0^ (226个子文件)
Welcome.class 6KB
Withdraw.class 6KB
Transfer.class 6KB
NewCode.class 5KB
NewAccount.class 5KB
Login.class 5KB
Deposit.class 5KB
Remain.class 5KB
BankDoor.class 4KB
Success.class 4KB
NewID.class 4KB
ServerThread.class 4KB
Database.class 3KB
CannotTransfer.class 3KB
NoSuchAccount.class 3KB
BalanceNotEnoughGUI.class 3KB
CodeWrong.class 3KB
ClientThread.class 3KB
ATM.class 2KB
OrderSender.class 2KB
Account.class 2KB
Client.class 1KB
ExceptionSort.class 1KB
Monitor.class 1018B
Administrator.class 939B
Server.class 886B
BalanceNotEnoughGUI$1.class 803B
CannotTransfer$1.class 768B
NoSuchAccount$1.class 761B
NewAccount$1.class 740B
NewAccount$2.class 740B
CodeWrong$1.class 733B
Transfer$1.class 726B
Withdraw$2.class 726B
BankDoor$2.class 726B
Withdraw$1.class 726B
Transfer$2.class 726B
BankDoor$1.class 726B
NewCode$1.class 719B
Welcome$5.class 719B
NewCode$2.class 719B
Welcome$4.class 719B
Deposit$2.class 719B
Success$1.class 719B
Welcome$3.class 719B
Welcome$2.class 719B
Welcome$1.class 719B
Deposit$1.class 719B
Welcome$6.class 719B
Remain$1.class 712B
Remain$2.class 712B
NewID$1.class 705B
Login$1.class 705B
Login$2.class 705B
iATM.class 699B
Bank.class 698B
BalanceNotEnough.class 296B
AccountNotFound.class 293B
WrongCode.class 275B
stylesheet.css 1KB
Welcome.form 8KB
NewAccount.form 8KB
Login.form 7KB
Transfer.form 7KB
NewCode.form 7KB
Deposit.form 6KB
Withdraw.form 6KB
BankDoor.form 5KB
Remain.form 4KB
NewID.form 4KB
CannotTransfer.form 4KB
Success.form 4KB
NoSuchAccount.form 4KB
BalanceNotEnoughGUI.form 4KB
CodeWrong.form 4KB
inherit.gif 57B
serialized-form.html 25KB
BankDoor.html 23KB
CannotTransfer.html 23KB
BalanceNotEnoughGUI.html 23KB
NewAccount.html 23KB
Deposit.html 23KB
Transfer.html 23KB
NewCode.html 23KB
Success.html 23KB
Remain.html 23KB
NewID.html 23KB
Welcome.html 23KB
NoSuchAccount.html 23KB
Withdraw.html 22KB
CodeWrong.html 22KB
Login.html 22KB
Account.html 17KB
ATM.html 16KB
Account.html 14KB
ExceptionSort.html 13KB
OrderSender.html 13KB
iATM.html 13KB
ClientThread.html 13KB
ServerThread.html 12KB
共 226 条
- 1
- 2
- 3
资源评论
新石器时代
- 粉丝: 0
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功