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 B9 k$ r) K0 V
- import java.awt.event.ActionEvent;
: h& E, F: u# l& H: q- U - import java.awt.event.ActionListener;
7 y: N. f+ |/ j4 @ h - import javax.swing.*;6 ^( y. l. @9 D0 ~( f
$ x( p4 V' ^% S* E2 Q- class Help extends JFrame implements ActionListener{; H8 ]; `( o. r1 b+ P ~4 }
- /**. e5 R+ d( M/ _3 b+ N4 Y' n) Z6 c
- *
( W* g2 m N8 ~+ s3 L0 y8 l - */
; k, A, v1 }/ h7 [' X) u# Y - private static final long serialVersionUID = 1L;
* U/ u: r; B# B+ h - static JFrame hp = new JFrame("家庭理财系统帮助");
7 P: e. R/ z+ q" H - static JPanel help = new JPanel();* {8 j% L+ A( u+ X) _7 V3 Q' F
- static JButton bt = new JButton("退出");- g) w: |7 n, `: Y6 z
- static JLabel lb1 = new JLabel("帮助:");
: v5 \& f: o7 f& M2 z* W" F - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");3 j/ V! C4 H6 y
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");7 [. X, Z+ |1 Z- M& ?
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");! ^8 W2 p8 S2 J' P# n. Y
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");* v+ d, P$ y/ O# M
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
3 b1 P& W& x$ ~9 | - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
* F& }; k1 s: ?$ f8 h8 W% b - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");+ \7 l; f1 v/ O5 b
- static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");
/ h5 f. n- _1 p; Q$ S: Z( s8 k& w - 0 @$ B' l, \3 W, o ]
- public Help(){
& u7 q1 t6 Z# q& H, v! ?6 ? - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);6 L- Y* i1 }9 e
- help.setLayout(null);hp.setLayout(null);
+ A& r" h) p8 i$ i$ @ - hp.setBounds(270, 180, 520, 300);* Y6 C5 y' D8 @& C$ v/ t
- help.setBounds(0, 0, 520, 200);
: V0 x4 ?8 W# ]5 D3 a/ _+ d+ [ - hp.setResizable(false);
& C5 b1 l, t8 r$ v - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
6 J3 D4 ]2 P- j - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
" \- C, k( n" d, |0 e - lb2.setBounds(15, 40, 600, 20);help.add(lb2);4 w- ~6 P, }. p
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);+ [( X) ~( u& w3 T$ Y _7 L( }
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);/ d4 g% w$ c% m" g5 y* p1 H
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);
7 |8 l* y6 B5 t: P# P2 B - lb6.setBounds(15, 120, 600, 20);help.add(lb6);: A4 q6 m! c O: b1 w6 f! {5 `
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);: @, g4 f3 K% [) T/ W
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
0 i7 _. P( F$ h! A4 ~) Y4 P - lb9.setBounds(15, 180, 600, 20);help.add(lb9);
4 N1 w! v/ y/ v- A h - hp.add(help);1 c7 H4 p4 F& H5 c( f4 [8 ^5 x
- hp.setVisible(true);) Z# k5 Y3 X: f& [1 X8 b2 u
- help.setVisible(true);
6 F5 m9 y0 E, `4 D$ T* t# y/ s& z - & Q( I( x1 i" R
- }
# [4 p# R2 c/ P - G( p% v; }, l( M! Q. T
- public void actionPerformed(ActionEvent e){! _4 y& }5 d) G
- hp.setVisible(false);1 m7 o) w4 [1 k5 ?' B- T
- }
" S8 d. D4 a2 Z. W. ]6 g4 O - public static void main(String[] args) {
1 ]3 P, c8 G+ U% f - //new Help();- r" Z; x1 ]+ [0 `( l$ W
- }& V/ p" ?& L, U# F1 b7 `; @$ t2 o
~; L# o" p$ o+ ]) F% ~- }- o# U& m3 B# u) t2 x! D+ R/ T2 N
复制代码 项目源码下载地址:点击下载 g9 c8 ]% g; i$ h4 t
0 [, [& x! s6 J) E% a
' W6 K h: S7 N7 o& s2 A1 U
8 v' _- Z* q0 M0 X. f$ X3 u7 c$ ]" a1 C6 [' o3 D# t
|