|
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
2 j8 p% J3 e7 l: M$ d( l8 A - import java.awt.event.ActionEvent;/ t; s) j) G! N* L
- import java.awt.event.ActionListener;
# k: V( F8 C8 {8 G8 t( y2 O - import javax.swing.*;
: W* b2 k) i: d' A5 ?- k - 9 y5 D- C/ y8 x, `8 l
- class Help extends JFrame implements ActionListener{
( K& \$ J& O1 ]( q* k* i - /**
1 ^* S- ~, b5 n! N# N* c) L - * # F3 v5 N( k3 ?! [4 h7 z7 }- X
- */9 E6 O8 l& l' A$ |# ]
- private static final long serialVersionUID = 1L;+ [" L) J4 I' j: Z8 d6 O1 Q
- static JFrame hp = new JFrame("家庭理财系统帮助");
: B( r& t: _% p' D( T, c6 X: f - static JPanel help = new JPanel();0 g6 k! z1 @; [, l0 R6 J/ I
- static JButton bt = new JButton("退出");, p7 {% C9 j3 D8 h/ ]
- static JLabel lb1 = new JLabel("帮助:");
* S; N$ I. K5 O6 D: ? - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
; r, y; \7 c* [ - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
8 U) x1 k1 h- d' I* a' _7 l - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");# }9 ?- A; O1 o0 \" {
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");
+ T1 r& e: W' m0 P p4 p - static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
6 X. r, w' t& k" B- u" b k - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");# ~2 d( I; j" g6 `; a
- static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");/ u& a$ p* `1 O9 @" G4 X$ S
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
& J7 H% [) U( _ ^6 T# O - / C: `/ w: n# a# t5 X o) h0 ?
- public Help(){
# [* A% }+ y6 h1 }6 y* [' c - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);' `1 r" |. X! Z. q$ o
- help.setLayout(null);hp.setLayout(null);
; J$ ~; ?1 ~; N3 `& e1 o - hp.setBounds(270, 180, 520, 300);2 `! {7 X) C, f# r
- help.setBounds(0, 0, 520, 200); X. a1 P& U9 J# x4 g& }6 B
- hp.setResizable(false);' z! Q; l Y& O F a
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
8 C3 I, C5 Q+ d; Y, u - lb1.setBounds(15, 20, 600, 20);help.add(lb1); ; m+ ]2 |% o- n0 Q( G4 V4 Q
- lb2.setBounds(15, 40, 600, 20);help.add(lb2);9 B* x+ {# ]0 t
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);3 @; _1 b! V1 X# v7 h- I0 B
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);
8 E$ U# i4 [6 M7 i0 l3 j4 F - lb5.setBounds(15, 100, 600, 20);help.add(lb5);
3 g) t' H1 r3 L/ ` - lb6.setBounds(15, 120, 600, 20);help.add(lb6);$ l. w" j' m/ Z+ j8 ^% m
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);
2 d. B5 W8 ~" L4 I# m - lb8.setBounds(15, 160, 600, 20);help.add(lb8);2 Z6 Y* H% d, A* W
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);
+ z' H0 z! e. _. e - hp.add(help);
: O1 @5 C5 U! o) Z - hp.setVisible(true);/ V( x5 f! v* F( {5 e H
- help.setVisible(true);, \" e% c5 R/ `( c, \
- 1 v* f( C8 c1 C j2 U& i
- }: E9 S8 D# Y$ C; G" c) N4 _5 L
-
" S5 v9 e6 a' p% X& ~! l% V - public void actionPerformed(ActionEvent e){# G( Z# Y0 _* K9 I1 V
- hp.setVisible(false);
: s. I H& F( d. k3 q) _ - }/ G3 E7 @9 c; y) f; D2 C! Q
- public static void main(String[] args) {
" p- n3 O, r7 i! c5 n0 Y" S# n/ u - //new Help();$ h0 h F; t7 m6 m6 j+ Z0 N. `
- }
9 n5 `* f( v+ X, G% W - 6 m; R8 B! } V$ q7 D6 Q+ L! \+ s0 a
- }9 I& l4 P9 e4 ]$ Z0 Y: G
复制代码 项目源码下载地址:点击下载5 e4 `4 B! o6 X9 R( q
, A7 [8 F! L: q/ J9 Y! \. ^ : X W2 ^- `7 B1 Z: F% Z
; D' U+ X, _ M" r
1 l9 m8 X0 d, l6 P7 d& b0 O, W |