|
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
5 U8 l8 o5 U9 x) _! ^. K - import java.awt.event.ActionEvent;% e5 b2 { g. y6 ~" p+ \
- import java.awt.event.ActionListener;7 f* W' s6 c7 d! |) V
- import javax.swing.*;
# C! V" ]" }: ~: l, L' l3 S
; g3 b( G3 R+ T! t" i0 H A- class Help extends JFrame implements ActionListener{
3 c1 |7 z1 m* ]* g6 h - /**
% g# C+ j+ o6 O - * ) c7 `4 ]) H; \5 U( \
- */# y$ C+ T2 j9 H* k! S1 S9 I" D T8 K
- private static final long serialVersionUID = 1L;; z( k4 w* h- V" i `1 u
- static JFrame hp = new JFrame("家庭理财系统帮助");. r; d0 K4 p6 X* S% g8 W- W! O
- static JPanel help = new JPanel();% j4 w- b, \$ k1 ^+ R$ s
- static JButton bt = new JButton("退出");
# ^$ u: s( @* L0 B - static JLabel lb1 = new JLabel("帮助:");) Y3 R7 }( V+ y/ i
- static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
h6 ~& J. p* s/ M! } - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
/ e" _4 k% c$ F% q/ t7 Y0 [ - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
6 a+ V/ b: W1 w* Z& p) G7 _* v - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");
# L& y* r3 a( p - static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
# C& Q3 i; @/ U- R7 e# \8 O7 l; n - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");) Q( T" [; j6 c) ~8 X- Z6 c
- static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");: p: A7 G9 H, d1 @. n. B/ R
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
. U- m0 ?, y3 |% q1 u - / ]. n" W: K% F8 Z) f8 T& ^5 C; h
- public Help(){
Y: ]. b: {6 U4 O: i3 D, e" D - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);5 w+ @3 k" s% I2 N" D ]! M
- help.setLayout(null);hp.setLayout(null);+ R5 }- c0 \; a* z. l
- hp.setBounds(270, 180, 520, 300);
* o: ~8 O/ K$ O; B - help.setBounds(0, 0, 520, 200);
! X( Z3 I, y$ a& h) x/ I2 ]# L - hp.setResizable(false);/ q! H- q" o! y
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);$ w- L* W! T) M- ]' i9 y- }) s2 E: c) l3 S
- lb1.setBounds(15, 20, 600, 20);help.add(lb1); $ L) i# c- s' I4 _
- lb2.setBounds(15, 40, 600, 20);help.add(lb2);4 X# b6 m2 u/ M% F
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);0 b9 C) q2 B8 M8 {/ \
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);' I' i. y; `; A) Q0 ^, t" E A, r. A
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);
7 Q4 b7 j( _, c) J1 e/ t - lb6.setBounds(15, 120, 600, 20);help.add(lb6);
; ^6 v9 E: x% W# A - lb7.setBounds(15, 140, 600, 20);help.add(lb7);2 Q+ z1 o* \1 z- @* f( M7 j% X
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);! K7 T; l" n1 E- T; _: S k% V5 e
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);
) m: q; c W$ X2 ~5 T - hp.add(help);
4 U5 q" w9 d6 @, v5 \' Q9 z& ?- O - hp.setVisible(true);
2 n) u$ {: e8 |" p - help.setVisible(true);; M# F" q `' m% F7 b; X
- g" U8 f1 ?( h
- }' i7 _ l% \( I4 D2 e
-
6 B: L1 m0 d/ N9 Y! ?5 c$ O - public void actionPerformed(ActionEvent e){* h* k* G0 M: ]; T4 K
- hp.setVisible(false);! W. b# @( X$ w) v/ @2 t( O' x+ \6 o; j
- }: g9 f8 H/ m7 b# M s3 ~' d1 j3 |
- public static void main(String[] args) {' V) t8 w# C7 I# h4 A
- //new Help();
6 J9 G; T1 K7 A0 o - }6 ~* O- C& x* w5 p8 ?& H3 K6 ]
, g, R; Q- S" _8 e7 i: u8 Z- }8 ^9 M3 B) c8 `% E ^5 H
复制代码 项目源码下载地址:点击下载1 b/ h8 [; o1 r2 |8 z
& a: v) W; |/ ?; c* `
; m# s4 W% Y- K: F' {8 X$ ~
, D# c) Y1 ]- y' |% d6 w4 X R; l4 c. ?' X# e: l
|