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
: T7 W( f& n; `+ v2 _9 Q
- import java.awt.event.ActionEvent;
' E4 N. N& X/ c" K6 o0 q+ f) d - import java.awt.event.ActionListener;
4 |' K, i, X0 w' P+ x - import javax.swing.*;
6 ^8 f* P' R) a" \ z0 ?1 x
$ r: s. K$ @" G. ^; u( e5 ~- class Help extends JFrame implements ActionListener{
g+ r$ w: L8 D! z- T0 @ - /**
. \1 F3 L+ O+ i E6 a - * 2 R* o8 g' ^( D& D7 T( A
- */
3 B4 s" [ w; q& X5 f; c9 M- { - private static final long serialVersionUID = 1L;
# Y% G# E% @. u+ ?2 B2 D" ^ n - static JFrame hp = new JFrame("家庭理财系统帮助");
1 N6 T1 \4 X8 L$ T - static JPanel help = new JPanel();
+ ?5 X+ _& H' d* G% M8 u - static JButton bt = new JButton("退出");; ?3 a5 ^: z/ b. M) t/ E' A
- static JLabel lb1 = new JLabel("帮助:");
; D, G: W8 \, m$ G. w - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");8 a( O# h! S0 y
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
v% F1 t6 h) `( m" b8 ^& n, g - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
. k+ r2 X7 h* s( F2 |8 K; S - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");! x J8 c. t: T0 G! s5 D1 o
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");. J$ g3 R9 M& Q1 J' V; `
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
t4 I# M! S, M - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");. d9 y( H. f8 B X# u
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");' G9 F: q5 m' S8 j' @/ _/ ~
- 7 L2 a6 S( o0 ?# O7 t- _
- public Help(){
6 j. A. t, o; L1 N1 U | - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);( p5 d: [' P0 O& \7 |* i
- help.setLayout(null);hp.setLayout(null);8 @6 |, E3 t3 H2 ^5 F
- hp.setBounds(270, 180, 520, 300);
9 Y6 Z- `6 l5 y- @* y - help.setBounds(0, 0, 520, 200);
: u2 r/ S" O; {% F - hp.setResizable(false);5 p& l8 c. S& e* r* I$ x
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this); S' c% F7 \4 Z
- lb1.setBounds(15, 20, 600, 20);help.add(lb1);
2 [- }) [+ e3 D: v" O - lb2.setBounds(15, 40, 600, 20);help.add(lb2);
/ f& b! h/ F1 p) I% _* G3 C& i - lb3.setBounds(15, 60, 600, 20);help.add(lb3);
9 _* _; N: a- z1 D* r8 q - lb4.setBounds(15, 80, 600, 20);help.add(lb4);8 p+ f' Q/ u6 i' K. X) ~# @! k. A
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);' W+ T) n$ _# v* t
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);7 L6 b8 ]: I7 W. o( {
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);
0 S1 c7 B7 V' u' ` - lb8.setBounds(15, 160, 600, 20);help.add(lb8);* n' L9 ^0 c Q9 B# f$ ?2 ~6 }
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);7 i/ ~: g3 ~. ~% T8 @1 P
- hp.add(help);
$ G/ w7 [' q1 G7 z! z; o% Q. v. k+ _ - hp.setVisible(true);; E3 @! n& i3 @* p5 D1 ?! L
- help.setVisible(true);
, c* |& r6 `5 O0 P1 o8 D1 K) J' U - % L* D- J! Y6 l+ G; N6 i/ ^
- }: ~+ P; }, r, W( M
- & R; W- K( m, K# G8 j/ u; i
- public void actionPerformed(ActionEvent e){$ M0 v% N: Z, N+ q* E
- hp.setVisible(false);# U) T+ x4 n+ c. I
- }
3 O% g2 t2 S' j; M8 N - public static void main(String[] args) {# V& ^. T+ v! H J- N' T3 Y6 B6 p
- //new Help();/ l/ B/ w, C+ Y2 Y. o$ @3 \
- }6 d* |' Y$ a9 D0 S, ?" V+ ?
- m. |8 F2 _1 W7 Q# |- A q& ?- }
; q% o7 ~0 V# x8 p7 _. h
复制代码 项目源码下载地址:点击下载
& Y" c7 p D: v$ Y' g' i
1 M% P3 C; g: j* Y' n/ g/ X# Q0 O7 T
1 Z$ C& t% v. |; ^9 [4 G$ {
* C W( d" V5 \4 d0 ?$ D/ F' O
* z# y# J5 j* g( G |