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
9 Y# V: s V% w9 i
- import java.awt.event.ActionEvent;
% S% z/ V: T8 N/ b% v$ k - import java.awt.event.ActionListener;
2 Y4 |# Z H9 R. R2 Z - import javax.swing.*;
/ _) j ~& e$ O - 5 V/ Y& I2 L+ y- |' d" a
- class Help extends JFrame implements ActionListener{
7 T$ d# z% f, ~- v - /**
- L& e% H. u" i! R% v9 T1 l - *
1 P' X5 Y6 j. s; a - */5 g: Z# T$ R' r' K6 O# z4 F
- private static final long serialVersionUID = 1L;8 t1 j' X/ b0 y
- static JFrame hp = new JFrame("家庭理财系统帮助");! M; }, h7 X( c* D- e8 n2 G
- static JPanel help = new JPanel();
8 L; [6 ~$ s* a - static JButton bt = new JButton("退出");
3 L8 p2 y& q9 L1 m2 L - static JLabel lb1 = new JLabel("帮助:");
. l; _ v; W* A9 O3 U( @' v8 `8 e - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;"); X1 l; ~$ ~" L9 q! L9 c
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");! x4 K& Q# Q& a+ j
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");; k* V- y" y& E3 p0 n
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");" S. S& E1 t v/ _1 A& ?
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");( w1 b# j0 V* L1 t8 M
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
+ F& C3 P$ d9 u" I - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");% D1 x, l7 H# h4 T$ Z' l
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
5 L, F5 Y! w. `; x" V( b, P - ) e. h d( x$ S# c) ~+ k' Q
- public Help(){. i( F' M s9 X8 V
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
; ^/ B0 b5 ?+ F! ?0 \/ C" T - help.setLayout(null);hp.setLayout(null);
+ l1 ]9 o0 \7 H - hp.setBounds(270, 180, 520, 300);
" ^& C' ?6 q8 ~; m$ d. v - help.setBounds(0, 0, 520, 200);0 @9 P# z4 V/ V* F @) |% v
- hp.setResizable(false);. Z& U6 o4 [, S1 ]" n. q
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);, ?3 y0 Q# W" ^# F( Y4 k7 A$ s
- lb1.setBounds(15, 20, 600, 20);help.add(lb1);
# o0 E* }7 X4 ]% v2 f+ I. O3 p - lb2.setBounds(15, 40, 600, 20);help.add(lb2);/ Z ^3 S" U. I6 w% w
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);
7 {' W' Q5 m- w* j" d1 F1 _ - lb4.setBounds(15, 80, 600, 20);help.add(lb4);
7 d t" s# \, B6 m( ` - lb5.setBounds(15, 100, 600, 20);help.add(lb5);" f* v% \# d+ b; {0 e1 e
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);/ d* `. U9 @& i: Z) Q
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);% E8 w) i! C4 }, F9 s- y8 C5 _
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);" r* i2 V5 J- c
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);
3 J- ~2 H4 g2 X; E- ^( K8 U- p( A - hp.add(help);
2 [$ T/ X6 s2 O; c$ r/ h+ J - hp.setVisible(true);/ l; o# Z! [3 A, R
- help.setVisible(true);; P8 _3 _" r6 c) _3 s# N
-
/ Z6 V7 j. x1 c8 S - }
1 r2 i4 d/ f, t8 i8 j) y - 8 y6 K* g0 v' G
- public void actionPerformed(ActionEvent e){
1 K. N0 s7 S. n% E/ ] b { - hp.setVisible(false);
0 k2 `3 j5 y- @+ {% F - }
$ ?3 q; V- p6 l* M! Z2 M8 Y7 x - public static void main(String[] args) {, R$ r' g" k7 U: ` K+ D" a
- //new Help();7 I% `0 a& n* L7 [( U6 K: E! s
- }
% ~- e' H; M" R$ I
1 H$ ]1 R A) W- }+ L) B, t7 W K8 T
复制代码 项目源码下载地址:点击下载
~ R. x4 f9 C+ p( B- V2 t9 a7 ?( |' b. o* w3 M/ [1 X) ]% T0 `3 \
! v1 Y# M+ n/ \4 K" Q0 z
# q) d# k; J- r- f
8 R4 u0 q# K. C |