First,we use the MyEclipse 6.0.1 and Access—2000 to carry out its functions; Second,it takes us many weeks especially my partner to make it well; Third,it still has many bugs,and we will prefect it as well as we can ; Forth,now I will introduce something of our project and dear Pan will talk some of the codes and show how the project works
! P+ \/ k2 f1 V6 u: q' A8 y) R5 Y - import java.awt.event.ActionEvent;
% M8 U! k; q% ?* ?& z, r) s$ N6 [ - import java.awt.event.ActionListener;& t$ p" p* G7 D+ P5 P/ B
- import javax.swing.*;
1 _4 B; q7 D k) O( {
- g* j8 l* d7 Y. O3 z- class Help extends JFrame implements ActionListener{
$ Y6 _1 P c7 U: ? - /**7 Y& O: b! ~; P7 v$ e8 l
- * & h! U' n+ r: T H+ T! }: p( Q
- */
# ?* Y/ |/ F/ C+ H - private static final long serialVersionUID = 1L;( N4 K8 I3 z; S, l- ^
- static JFrame hp = new JFrame("家庭理财系统帮助");
& [. s/ V" B; m - static JPanel help = new JPanel();# t. K0 V5 |5 }3 j7 c/ e- c# ~( J
- static JButton bt = new JButton("退出");6 V( C, Y& L& C$ Q) r
- static JLabel lb1 = new JLabel("帮助:");
; K3 B: `- u5 O- H- F4 L; s - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
0 `( K5 j: l0 [/ ? - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
# Z) B4 i$ _" l5 n: F; }% ]! l - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
% e/ L* y/ q9 {; \ - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");: n* e L1 A) S- R7 L/ s6 P: d
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");3 y) u! u- r1 Z
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
; ?8 ?6 T4 M! @ - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
, l7 F; @, M! A4 o: U - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");: Z% |. Q$ |- ~6 a* o
- : E( t! k: Q6 W9 E
- public Help(){2 n+ E) L8 d R
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);0 w9 |* ]7 }/ ^' {- l6 S
- help.setLayout(null);hp.setLayout(null);3 `7 J: x. |3 h7 {" P+ J O
- hp.setBounds(270, 180, 520, 300);
6 p" X# O8 F* A4 o" ?6 s7 z5 h' _ - help.setBounds(0, 0, 520, 200);
5 a* p8 X% R# S3 N( @ - hp.setResizable(false);
! z( p V1 q* _& I& j7 `) o# T( D - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
# A! d! T" M0 Z4 t$ x9 {. k - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
+ {- ~/ { B1 C - lb2.setBounds(15, 40, 600, 20);help.add(lb2);
/ B& \9 X' B( i) I( G) H' ~ - lb3.setBounds(15, 60, 600, 20);help.add(lb3);5 ]) B% R+ p2 L p& Y1 b) b# w
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);4 A, C7 z* o) O' U) f
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);. B% w' C7 Q+ k4 }
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);* b& B/ |3 y' z4 L& X
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);$ `2 y1 W# p5 U7 N3 o; ~
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);6 q. j& {9 \: u* C# H$ L
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);+ e6 ^" }: B' g; D: f' }; N
- hp.add(help);. f0 k5 x% ~/ |4 A8 e
- hp.setVisible(true);
e7 P$ U2 g8 i1 P2 r7 v6 P - help.setVisible(true);
5 ^2 N1 Z O( [$ o -
E5 E# Q& u/ M+ d5 G - }
# M0 R1 [0 C4 \- x/ [ - 5 {! ~' s" i8 N* N! z
- public void actionPerformed(ActionEvent e){
* K2 H# }3 n1 e5 G/ A - hp.setVisible(false);
: u9 g9 y- M& H - }' I2 g) t8 B6 n
- public static void main(String[] args) {0 A# ?0 o3 n K: U0 t3 Y' n
- //new Help();' F: H. h4 `3 e* V6 i1 F8 ^
- }3 Y# s3 ^2 Q: u+ p, s
& |, a6 C) u y- }
! ~; X+ f: P. K+ I! ~
复制代码 项目源码下载地址:点击下载
7 @& x% L M9 C% w9 c0 ]" ]* d
$ r7 `0 o; O1 P% m1 s6 }0 p. b( V
1 \& c2 z) v* f( J; z) C) J/ ?# s$ m% \' u
$ H9 Y9 o K& z% m- x# |
|