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
4 h* s+ m9 ^+ B5 M, h - import java.awt.event.ActionEvent;
3 P( ~6 a, x- g - import java.awt.event.ActionListener;
2 V% a& P Y4 r, s - import javax.swing.*;* [2 I8 ]0 l0 I0 O4 V
. d/ X& w2 k# I- class Help extends JFrame implements ActionListener{& L" a& x, z& {
- /**
9 e+ t, c$ b- m6 c' c6 L* S5 I - * 6 x& s. W" A* [9 v3 s( l
- */1 Z' [( B) v' {/ I
- private static final long serialVersionUID = 1L;" T* B" T2 ?. b: N: O2 z* f
- static JFrame hp = new JFrame("家庭理财系统帮助");0 c* p4 |0 j* T G4 e
- static JPanel help = new JPanel();3 u1 V* V2 m: ?
- static JButton bt = new JButton("退出");3 {4 w; n; z3 b: h
- static JLabel lb1 = new JLabel("帮助:");" v- N( u: U. u L5 C3 a' I- i0 ]
- static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
4 \7 u; C. g5 X+ k/ @! O - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
) {2 ~% [) f1 z) o& M& w - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");! q/ O8 a' x( W: G2 B4 G
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");7 |. J/ T: |$ {9 ^* Z
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");( _0 e& y. _* v4 L3 b
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");* y9 c5 f; h0 o4 ] h5 A+ K
- static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");" F* @3 j2 R K! A. N
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
7 O8 L9 L8 J2 P5 _ -
& x/ }; g% O/ d; { - public Help(){9 O! f+ c0 Q& d6 ~) l- u6 r
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);# G2 O6 o1 `% g: {' H/ J3 K( b* ?/ q
- help.setLayout(null);hp.setLayout(null);
+ H# f; N: C4 l; U: n - hp.setBounds(270, 180, 520, 300);
' I; T( ^/ X) O( I; _ - help.setBounds(0, 0, 520, 200);! _9 G: {1 @5 ?: ]- e/ a& ^
- hp.setResizable(false);
( h* {0 R$ y( X' Z - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);) E) a1 f5 r5 R% h
- lb1.setBounds(15, 20, 600, 20);help.add(lb1);
9 X8 x: X" O, }" v" F+ ` - lb2.setBounds(15, 40, 600, 20);help.add(lb2);
5 l- |& e |6 h' ^ - lb3.setBounds(15, 60, 600, 20);help.add(lb3);" a' y. k& t( o* e( ^; a% l
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);
, \! r6 C) I& `( [/ e, _" O - lb5.setBounds(15, 100, 600, 20);help.add(lb5);
4 o* a) Y! b! ]# o/ u D$ D; t5 n - lb6.setBounds(15, 120, 600, 20);help.add(lb6);
% B9 a$ P/ a @5 U' U - lb7.setBounds(15, 140, 600, 20);help.add(lb7);% @: k" E. M+ }$ t! b2 C
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);) }! J" |9 q, L2 W1 P, ?* o1 q
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);: o/ h, p" S! L/ o
- hp.add(help);
2 j0 B; n0 w9 a7 q4 u5 E - hp.setVisible(true);4 W1 v) a: c* ~( @" a, M; \
- help.setVisible(true);
, A4 X" _" [$ ]1 G2 A - ) s/ T* p. [" D% w ^ \. Z; o
- }
+ w1 V; F) s) r* t$ a! I0 T R. a -
2 g3 T! M6 m; }/ G! t; q Q$ P - public void actionPerformed(ActionEvent e){
" \# U5 J5 D! w$ @ - hp.setVisible(false);
' [% F P9 K4 k8 M - } r6 {1 v5 j% p. b
- public static void main(String[] args) {
4 U1 t* o' }( z% H3 O3 d: c% U - //new Help();
; l! I( \" ~ b! M) P/ X1 C2 V' w - }
7 H2 j$ u0 A; |4 `- n- w7 T
: \4 `6 p2 v* ]' z9 j6 w9 F- }# o/ t. F/ L o e- h' c
复制代码 项目源码下载地址:点击下载
9 ?% r7 w$ a5 v! C! h8 T0 @) }1 m4 b# g! U8 w7 ]4 |
y& w- d9 L/ }- X) M6 Y' b/ g# w0 a4 z$ ]0 H- [: Z9 X& y0 t
E! J$ T* A- u2 a( s+ E [ |