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
7 X: ^2 L" }2 F7 w& I/ ?3 j - import java.awt.event.ActionEvent;
! g: ?3 Y: E7 \6 @+ @9 Y5 A - import java.awt.event.ActionListener;
/ G9 {1 U/ W; O% @( L+ g - import javax.swing.*;
$ c+ X; _3 w; Z E7 L - - e3 W* u, V9 } Q
- class Help extends JFrame implements ActionListener{
3 g& {" E# S" w! B+ n; J: P - /**4 r L! `* J( j0 g& b6 L* d' \) `
- *
3 q5 P/ P5 W! k# @0 z0 _ - */. P3 @; ^) ^& t+ v; h. S2 A* b
- private static final long serialVersionUID = 1L;
0 M4 i) C2 k z+ Q0 [8 H/ B - static JFrame hp = new JFrame("家庭理财系统帮助");
* h# t4 \! ~5 f- Z - static JPanel help = new JPanel();
' |: K. M/ H. O. ^ - static JButton bt = new JButton("退出");
8 t3 r6 P4 u* [1 e, L; e - static JLabel lb1 = new JLabel("帮助:");8 O! O3 L; E) b( d; V
- static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");0 w& J7 f4 S% w; t# @( i, w
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");3 R/ I4 X, T5 |; E) @* P7 _! ^# W
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
* C4 g& ]9 ]7 W% @ - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");
! w& P3 Q9 z- g$ P - static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");' h2 w# o% I- K
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");4 m* c }4 a/ `" m- E
- static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");2 U' H; h3 _+ Z: X; d# P& l9 d6 J
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
i' c# w% p1 b- Q - 5 m& e/ C' n$ H" d' @; F
- public Help(){
1 q1 o3 O& y. }' ]6 F# i* Z - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);6 e: t5 m3 x; Q4 p7 P
- help.setLayout(null);hp.setLayout(null);( a* \6 Z. C2 w5 g$ V7 w
- hp.setBounds(270, 180, 520, 300);
+ ]4 w4 Q& b" b! p- Z, X - help.setBounds(0, 0, 520, 200);
{( n. K) t4 K6 X1 s" x. M - hp.setResizable(false);$ p' i m' {6 [$ o$ O4 G v9 m7 g3 Y
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
1 Z2 B) j2 y8 A: n( J: m# s - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
" T8 h+ ^! G: N+ H! } - lb2.setBounds(15, 40, 600, 20);help.add(lb2);
6 N. c* a0 K9 {4 J) l2 m% C - lb3.setBounds(15, 60, 600, 20);help.add(lb3);+ }( ~( q- _- A- R3 K5 l
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);
$ a( Y; t6 j8 S, Z } - lb5.setBounds(15, 100, 600, 20);help.add(lb5);
: p7 a& F% Y- J1 a7 a7 ?# D( S - lb6.setBounds(15, 120, 600, 20);help.add(lb6);
( F6 n$ l$ k2 E3 K5 t* \1 C6 _ - lb7.setBounds(15, 140, 600, 20);help.add(lb7);) Y- V8 V/ B0 f
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
% `5 j X0 W& E5 U, L6 W - lb9.setBounds(15, 180, 600, 20);help.add(lb9);9 i; X4 {! T9 p+ u7 Z5 V3 E7 _/ g
- hp.add(help);/ n' ?) u8 D7 o; Y" G6 c
- hp.setVisible(true);3 X7 x6 K" e# }# O. v1 E: Y
- help.setVisible(true);5 \' g5 ]- c# d* J6 Y9 g8 u
-
! V( F! B i3 e2 c7 J$ y - }9 `6 f& {) j" K6 e- I* M
-
7 M7 l |, S7 o1 H: i) i6 I6 F1 z - public void actionPerformed(ActionEvent e){
' h* Z+ n2 L4 q - hp.setVisible(false);
5 R. f; ^' z& |4 o" E4 T1 R# V - }
?5 [+ A) }7 k7 |) ~( E - public static void main(String[] args) {. m1 Y9 n- V! j9 ?
- //new Help();) ^% d% h: @- \# y& X! b7 u
- }
3 v# w/ B# P B" Y% L0 K( j
5 `6 n5 w) y6 W" x5 U) }+ D- }
5 V- [6 n# w* R# [% N; c
复制代码 项目源码下载地址:点击下载+ y8 S) G5 ^1 r( _, {7 o8 N
0 C1 I7 Y! h1 G y5 [# Z7 u( H
" A% m0 o) y, M. P& u/ u: N* o8 ^8 t# I
, c# P- k. c- F
|