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 e+ Y5 D" t9 x$ i2 R* s& @# ^ - import java.awt.event.ActionEvent;) R$ Z* m# K' A1 p. ?$ H) c
- import java.awt.event.ActionListener;
. e y, A p: y. ~7 ~8 p - import javax.swing.*;$ H, B! B2 K) k) S, w* u
- $ O" S. {( w1 s6 L
- class Help extends JFrame implements ActionListener{5 ? D6 v- I9 @2 z8 d& e& ?
- /**5 t0 c; x; E' \: k" v% E
- * ^: i# y1 W3 @ o# v( z
- */2 o3 }6 [! n% w4 q; o0 L, P; v
- private static final long serialVersionUID = 1L;
: i7 E6 I. | Y$ e5 T - static JFrame hp = new JFrame("家庭理财系统帮助");8 h \8 C' ^2 H( R& L0 l
- static JPanel help = new JPanel();
5 { `* Z+ i' X* W" p3 y* ~9 G( T - static JButton bt = new JButton("退出");% s: ?& i! g3 v1 c8 s
- static JLabel lb1 = new JLabel("帮助:");* x! S6 l3 `1 k4 B- a7 h
- static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");! v+ D% T/ P, I$ r) i8 f
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");/ N6 r' d, q& c5 q7 d( M
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");6 |2 b1 {8 d/ d4 T* R: A
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");) a7 U W3 u* w6 V
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
$ M# U9 g; l( | L, N f x - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");9 T, T3 z! u! ~6 {: N* ~( `$ `
- static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
9 |5 Z' [, J2 U W: P3 b4 X - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");4 D+ {. y+ w/ F6 L. R/ n. Q/ r
-
; e$ C3 D) ]$ a$ x8 _* n7 ^ - public Help(){
/ ~. F2 K: ]$ ^2 { - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);/ n/ g6 S5 i& f6 I- B# P
- help.setLayout(null);hp.setLayout(null);
/ [0 | E2 M _1 j, L - hp.setBounds(270, 180, 520, 300);, y8 O, j& J/ Q
- help.setBounds(0, 0, 520, 200);
' u9 _- T$ d$ t3 v( M* Y( V B - hp.setResizable(false);& F! l' v1 y, D4 C6 H9 e
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
6 i2 J( O5 }4 Z5 ]( i. a, _ - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
% v7 v) x; u3 f' ^" A - lb2.setBounds(15, 40, 600, 20);help.add(lb2);* f- X! _0 p" W2 z+ Z
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);! W/ z: a6 v5 l; }1 F% u7 G' t9 U0 C
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);
0 I% Z$ f8 P/ f+ U5 S9 c7 v+ H - lb5.setBounds(15, 100, 600, 20);help.add(lb5);4 q- [' `# X" p' h
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);8 q" k9 u; ~; `" l" G
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);
- X, N# y' u# k% _ - lb8.setBounds(15, 160, 600, 20);help.add(lb8);/ e# q4 X) {+ R( V9 ]) @! T9 l- ~
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);
* z- D6 H6 Y4 z3 ?3 G - hp.add(help);2 @' B' G. p5 }/ q( y5 o
- hp.setVisible(true);! i# ]6 ?( n4 f# Z: B8 _
- help.setVisible(true);
5 k* ? O# f2 c* P -
2 S! W' ?" K7 u - }
# w# f" ] {3 D3 r G$ B' q. c - 0 C5 ^8 w s! p7 P3 u' C+ k
- public void actionPerformed(ActionEvent e){
% g8 ], j1 G9 m3 g( @/ d/ _ - hp.setVisible(false);# a5 x! F% @" ~# ]6 g4 y+ ?
- }
8 ]" a8 \5 { J+ S5 x - public static void main(String[] args) {' q4 l0 d9 ?( n7 [
- //new Help();
& p" B5 {: e, d0 h - }
* p; m, x. U8 Q4 I6 ^8 C r - ! R' d: s( S& q: [& k$ N& R
- }
: M0 s. r+ f7 Q; Y
复制代码 项目源码下载地址:点击下载& L- d0 v0 j& d3 C. d# s
V7 R9 b- k9 N 5 V$ s, T: Z) b9 c
; I; L1 ~8 {$ X, O0 I0 i
! _8 o5 Z) G2 v" |# N' x5 M |