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
, L- U0 l1 r$ n- } - import java.awt.event.ActionEvent;# M# Y2 S1 |# h$ S
- import java.awt.event.ActionListener;5 O& }) V7 y( R5 l( N6 g4 W
- import javax.swing.*;
" f! I, ]8 {/ I! u1 x5 C
& Y# N/ k4 @* b/ d' `; O. I- class Help extends JFrame implements ActionListener{
1 A H+ `0 Y# E" N - /**: }* U4 i, g" c8 z
- * , S4 i7 Z4 e/ A9 R3 h$ ~
- */; H5 y% V/ K; Z7 S/ b
- private static final long serialVersionUID = 1L;
4 ^( F* @' T% G0 U7 ?9 H5 @ - static JFrame hp = new JFrame("家庭理财系统帮助");/ S+ W8 _1 S$ T J- u$ A
- static JPanel help = new JPanel();
% ]& g) r: Q8 ^- U0 W: j. k - static JButton bt = new JButton("退出");
" p( c- y9 W. K5 B6 }* m! v8 s; L7 G+ d - static JLabel lb1 = new JLabel("帮助:");
3 n+ ~1 A- ~, b4 @: m+ S - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");: R' y# I4 z) {: u' T# k0 j( x5 Y
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
2 {' ^6 u5 n1 y/ r$ e9 m' K' Q - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
0 T6 v" X& B% |8 M. i/ d. U a - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");! o3 g8 C4 a2 T; `2 F
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");( l( ]& h( Z5 b" n1 B
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
; f% e$ f4 N+ S2 j - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
2 \" v% Q0 M: T$ I& Y - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");4 ?5 f7 K: v( m+ L( O o6 n
- % e' H, ]; v; ]
- public Help(){
5 ]9 L% c4 d3 ~7 |7 Y$ d - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
* Y. ~2 ^& E7 _7 W! b% F/ e2 R - help.setLayout(null);hp.setLayout(null);+ V v- i6 T; c9 v9 O. p0 q) t
- hp.setBounds(270, 180, 520, 300);
; k" F# ~* p8 N% j( K, K0 } - help.setBounds(0, 0, 520, 200);' h( r% b0 \" ]
- hp.setResizable(false);
% u. x' A. ~$ M6 \2 F0 p6 a - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
8 L, c l- }. f# l/ [* ^& c - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
4 @1 s# _; c' F9 B - lb2.setBounds(15, 40, 600, 20);help.add(lb2); P% |& i, N [& \( H
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);( b) b! c6 ~2 Y u, H
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);
/ W& g, Y/ {9 F$ } - lb5.setBounds(15, 100, 600, 20);help.add(lb5);
- n E$ ~( |2 U8 a( P - lb6.setBounds(15, 120, 600, 20);help.add(lb6);
. x' S/ c/ ^* U - lb7.setBounds(15, 140, 600, 20);help.add(lb7);: p! a6 z$ p6 e) E9 t
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
6 E7 r* C- U! `5 v - lb9.setBounds(15, 180, 600, 20);help.add(lb9);
$ V9 T8 ?% m) d! \# h' B - hp.add(help);
* g( i5 `: q5 U" Y - hp.setVisible(true);- P% H. Z# z' l/ s
- help.setVisible(true);
. L. U1 O# ^6 n }" H0 L2 | - * A/ Z. X4 {0 h: s- e2 m- _
- }
+ P1 U* x. a. u; q - ( j" u' ^9 s0 S8 I- a
- public void actionPerformed(ActionEvent e){
# q* d2 c: ^& }1 ]! {2 ~" n' b - hp.setVisible(false);0 B5 [, I j' N6 b: i
- }, p g: p' r$ G, V7 r
- public static void main(String[] args) {
) @" h1 V" B' l, N" s4 N2 L - //new Help();
, [+ x8 W4 x) h- e3 H% i* }6 ] - }
! C' F) o1 A( ?8 c4 x4 X
5 U% B1 y* X8 m. C* T- }
% b4 X6 k3 N! W/ T
复制代码 项目源码下载地址:点击下载
5 R: Y! _! I4 l. l$ C$ F$ z- q6 [; Z7 J1 u
. Q( c# c3 [8 z% t6 i
+ P; B. C% m) l; H. R2 H7 |& X: v; E- i' W
|