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
6 A1 I( `9 S. E( ~; B' L
- import java.awt.event.ActionEvent;
; i3 K7 k( V( G) { - import java.awt.event.ActionListener;( n# R, A0 {1 P( p/ A. M7 Q# E
- import javax.swing.*;& j- U$ d5 \, I0 ?- j9 p
9 W8 w! a9 Z+ J" y9 S- class Help extends JFrame implements ActionListener{' U( k% [- B$ B% M2 a% C" O6 Y
- /**3 H( Z4 ~ m8 G: _! z% N. \* ]% l
- * 8 j% @8 [/ ~- ]7 T5 \
- */, G+ ]) h0 I0 U8 p
- private static final long serialVersionUID = 1L;
# D8 N7 w' V3 m' j* e7 i - static JFrame hp = new JFrame("家庭理财系统帮助");
9 }* q q' _# F1 i- ?9 e' \6 S - static JPanel help = new JPanel();1 K1 L: l; @2 G1 x; ]( X$ L' l
- static JButton bt = new JButton("退出");0 c0 C7 h+ T2 z5 `
- static JLabel lb1 = new JLabel("帮助:");. e8 \' e$ k2 L" b+ u! S
- static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");# V& W; s6 }1 M
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
/ m# Q* w2 I0 K0 o' y - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");0 U. u3 l d: i; X+ Q! J
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");3 s# y1 Q1 z$ j {0 _8 P( r
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
1 C' e- c9 J( a' J+ Z2 I# @ - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
) O- X$ r* ]9 _5 a5 M - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");$ T1 Y- |* ?5 h2 o; z4 E
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
; M7 d- T& d4 B) B. I0 E -
9 c C7 W$ @9 G3 T - public Help(){
: s$ C" ?2 |1 r3 q6 K+ ?" q - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);8 h% ?- L) j4 J' A- O; m. h
- help.setLayout(null);hp.setLayout(null);5 A) G7 P$ g1 V4 {' W
- hp.setBounds(270, 180, 520, 300);3 e4 M& L2 P p, z7 i
- help.setBounds(0, 0, 520, 200);; y# }# Y( ^! t) ]: j+ w
- hp.setResizable(false);: A A& Z, U& Q$ G8 i" Q2 o
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);+ V3 |% A* W9 d2 y/ g+ U
- lb1.setBounds(15, 20, 600, 20);help.add(lb1);
- ^+ Z) D! F! g A* l- T8 i - lb2.setBounds(15, 40, 600, 20);help.add(lb2);
) u" |" E" f. z, S- m! L+ S - lb3.setBounds(15, 60, 600, 20);help.add(lb3);
/ X$ D K2 `. K8 r+ R1 d - lb4.setBounds(15, 80, 600, 20);help.add(lb4);
6 T$ M/ f4 p1 p, A k - lb5.setBounds(15, 100, 600, 20);help.add(lb5);* q; P% a. a7 D/ |" M
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);" T `8 G# Y# d' J. f
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);! c9 D) y9 b, f1 f0 Y
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
* w2 Q2 u- P" W, t: M1 L& b - lb9.setBounds(15, 180, 600, 20);help.add(lb9);
& U1 u0 [" B/ b5 h - hp.add(help);# g5 O9 B* {; [" B! G5 o9 Q
- hp.setVisible(true);3 d6 H3 y* i" Q" j
- help.setVisible(true);( u b6 U5 F* y- u* k' m& V% h
- 3 V: ^6 Z2 u7 _ G ?' m6 g5 i( t& D
- }" H1 [ S) ?; \1 v/ Z" v C1 N: A
- $ h% w3 i& W5 Y
- public void actionPerformed(ActionEvent e){
- H$ R0 Z% M7 F. W) J - hp.setVisible(false);
# K/ _5 Q9 ]2 n: N7 F ~! s - }
" i5 S! q; h; f7 t# o% A% G: n - public static void main(String[] args) {8 N3 q& R. e" x# U
- //new Help();" @- N; W/ q8 ]
- }
! U! x, n; k T% j8 T$ V! a" | - 4 X: z0 S( x: E, L6 g
- }( z- |& p- T6 r- C4 _- X1 T% e
复制代码 项目源码下载地址:点击下载- _7 `0 k$ s1 h$ f1 @
' m$ N) ~! p9 W9 U9 b9 f/ l J/ h' t1 L1 i4 k$ F% T
+ m; x' e, s& X, \& @2 O
3 O! k E9 P# k |