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
$ ~1 T$ @6 T( X" S- L8 K5 a
- import java.awt.event.ActionEvent;
$ ~/ \7 M1 b( `/ J2 ? - import java.awt.event.ActionListener;
: l( ]( H: T8 o6 r; |8 z T$ a - import javax.swing.*;
+ M5 Q3 y, Q- Z/ d$ j: ?
4 b. U5 \, L; N8 E8 c r- class Help extends JFrame implements ActionListener{ ]! [# [/ d, n) b, A8 K
- /**% E; S3 q! o4 z/ F
- * 1 ]. T1 Q3 y( {# t8 i5 d
- */! |2 o4 @* ]! Q7 N' s
- private static final long serialVersionUID = 1L;
: q6 @- v, e( F3 p - static JFrame hp = new JFrame("家庭理财系统帮助");: ^3 j% ^( B0 {6 N6 @
- static JPanel help = new JPanel();
" B) N! C5 ^- J! Z6 h' A - static JButton bt = new JButton("退出");" C; e1 D1 \0 f+ E, ]) U A
- static JLabel lb1 = new JLabel("帮助:");
! X& A9 `& q' R0 Y: r9 X" e - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
3 {$ P% {4 H: k/ Y6 | - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
# J* i3 V5 C ]& `; X' H - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");$ p* s0 V1 B j0 c, m; h, D
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");4 {# m8 K6 ?% z( V# f: T, b+ s0 j
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");7 k3 [: E k& M7 X+ M* m. H6 E
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");, L& n: }: e; K/ @
- static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
. S/ D; R2 f" N: R" z4 v4 k - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
! ^' ^: z% ~" ]; I% t5 v' m -
& C3 C& V5 G3 Q ]; G. a- b - public Help(){
# R0 C' U7 q& U) @ - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
& h% X$ m `; f' O3 r - help.setLayout(null);hp.setLayout(null);( H3 Q0 N C q
- hp.setBounds(270, 180, 520, 300);5 \4 k9 v( d& k; N( t3 U
- help.setBounds(0, 0, 520, 200);# |, o% {% }" ^1 O. j {
- hp.setResizable(false);9 T/ i# G3 T& q
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
1 ^- ^7 I S1 H* _7 T2 j7 H Z3 d - lb1.setBounds(15, 20, 600, 20);help.add(lb1); $ O8 J# Y- N0 s" ^
- lb2.setBounds(15, 40, 600, 20);help.add(lb2);
( X+ f `$ i; j {) a- { - lb3.setBounds(15, 60, 600, 20);help.add(lb3);; [" s4 M0 |3 q4 c1 x0 t
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);0 V) m: D `$ q8 \, Z
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);
X9 m0 ^( u K' T8 [# q - lb6.setBounds(15, 120, 600, 20);help.add(lb6);
# n% Z- P2 ]) V! n+ X - lb7.setBounds(15, 140, 600, 20);help.add(lb7); b: A: F. U! m5 g
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
/ Q9 U2 I) K1 X& b g - lb9.setBounds(15, 180, 600, 20);help.add(lb9);2 q8 X7 E+ g2 M8 z5 Y
- hp.add(help);
- V7 c! p4 _3 ` - hp.setVisible(true);8 Z; w7 Q( c) J& r% V) b9 }
- help.setVisible(true);
. Z5 N5 H; V' F) h, ] - 7 e: G' b/ I, H8 n
- }
) S }; N/ M" i( [$ { -
3 Y D' |2 N+ b! X9 u - public void actionPerformed(ActionEvent e){
" N2 I/ ]0 Q S5 T: s - hp.setVisible(false);- e4 i; [# b3 {/ s+ \
- }5 e- u% R, b4 R/ X8 F
- public static void main(String[] args) {2 X' W4 E. y" j, o: b( ?
- //new Help();3 V5 g5 i; f8 n3 b3 z7 H
- }
* L% v; h, J/ T5 H) E; X
H" e2 Q; ?: [ C4 h! T- }) ? a/ v: G" k" @$ O n1 u
复制代码 项目源码下载地址:点击下载- _- `3 N. }0 X9 y4 q4 }' Z5 u: W
0 s4 w- W u' o+ K( ]0 t
0 j: ?5 p2 \; h( y a7 ?" b! X4 K8 g1 d e
9 ^' R1 o: ]/ [8 L6 k7 y
}0 U6 L! n8 U" V1 M {: |/ ~ |