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
+ ~8 ?4 I) o' p& T8 {' ^ - import java.awt.event.ActionEvent;6 i, L5 q; M3 Q) g7 j5 L/ v* I
- import java.awt.event.ActionListener;
. q* ]: L7 n8 Z9 o6 W - import javax.swing.*;/ z, d- E' @+ x$ t. d
; F( g8 _8 k0 [& \" s/ i5 r- class Help extends JFrame implements ActionListener{( j" b+ C3 Y& N9 ?
- /**
, x7 H1 F; |1 x - *
, \$ f! s4 P8 a3 i a8 y% B# T - */2 l+ X+ c" G8 g
- private static final long serialVersionUID = 1L;
9 \5 q5 k8 p" f% n, d# k/ [/ \1 p" x - static JFrame hp = new JFrame("家庭理财系统帮助");5 z F. C2 j2 k& A% y
- static JPanel help = new JPanel();, T- V9 c: i& r( y' H
- static JButton bt = new JButton("退出");
6 e4 K" Y( n( P, i% }" z8 w& c - static JLabel lb1 = new JLabel("帮助:");
' _3 z( G. h" u2 A - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
5 g o* _* M- m6 }* T, z- { - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");! B" ] A9 [* \" R
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
+ X/ {% {: ^8 J7 C m - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");0 { J T# U- J( K
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
& u4 T- }) h: o - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
* \) n8 ` V/ F" r: W5 L0 J* ~ - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");( H0 r+ G2 z9 Z7 @/ [& R) S6 a
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");0 C3 V- A9 A/ R3 Z: `
- ?& m/ l/ f7 `+ b f) j
- public Help(){! ^+ D+ A2 K7 E/ v& r
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ `, u# y3 v$ u1 c" y+ [! x - help.setLayout(null);hp.setLayout(null);
1 n( ]$ P @2 t - hp.setBounds(270, 180, 520, 300);9 k% P) N( T& p
- help.setBounds(0, 0, 520, 200);
' ^: _; C2 U% P8 ^4 o& ^+ w/ Q - hp.setResizable(false);
) E( N% K/ C) q - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
' l7 ]% g' X w5 P7 p - lb1.setBounds(15, 20, 600, 20);help.add(lb1); 4 t" Z! j1 q( @/ [2 w0 p1 ^( G4 W8 |
- lb2.setBounds(15, 40, 600, 20);help.add(lb2);
; V/ J2 R5 `! I) v) ? - lb3.setBounds(15, 60, 600, 20);help.add(lb3);
1 T- x q' [4 W$ {) X0 u - lb4.setBounds(15, 80, 600, 20);help.add(lb4);# n! l3 ^( x1 d- c/ b+ S
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);/ R7 q# @3 L4 A! z b. r, ~/ W
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);
' t( a n6 ~* u3 m - lb7.setBounds(15, 140, 600, 20);help.add(lb7);0 |$ d H, e3 y6 I+ y
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
& o; [- r2 |- ~6 Q( w/ t! G - lb9.setBounds(15, 180, 600, 20);help.add(lb9);
( |- U R, x# \- T3 X, C - hp.add(help); m n+ X7 T! X3 y5 N5 E) X
- hp.setVisible(true);
1 R7 a' K' Z) D8 P& ~2 I! r - help.setVisible(true);
+ k4 d: v/ p( s2 N - ) k& r/ w. E+ e2 @
- }
) ?9 q* l, r0 L; p1 a7 H* h - 9 ~& m$ J1 e( |
- public void actionPerformed(ActionEvent e){5 U) g/ `8 l l( P- o4 B! \; t
- hp.setVisible(false);
1 ~- a' t, S1 {( I - }0 t8 k' _3 Q- X' {6 u
- public static void main(String[] args) {" A# D, j+ @2 |- i1 L" e
- //new Help();
8 n9 T5 a; O1 L! y h4 a0 K - } c' Z7 e$ y& [" `, i& r" j- D- k
# R1 [6 E U' h( c' R' B9 _- }$ u' R6 a; i2 u
复制代码 项目源码下载地址:点击下载
* U+ l% ]+ s9 q4 A4 g1 Y/ H$ m# v% G+ a( }7 A
; @$ d5 j3 D J6 d% c
2 j4 t% N$ r# L: N% S8 U1 {& H) P, M7 w0 p) c- X2 s; a8 h
|