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
# w. n4 J/ s; R+ c3 P* a
- import java.awt.event.ActionEvent;
- J/ I' O8 O3 U - import java.awt.event.ActionListener;
1 w0 m; I( B1 z7 ^ - import javax.swing.*;+ y% k- I4 B/ \' P0 q5 B+ t
/ b8 K4 N: m( f, ~7 D0 K- class Help extends JFrame implements ActionListener{
- G9 ~6 s5 \4 F. } - /**7 {' w0 E# v2 w7 J5 ^2 [
- *
6 p2 k1 D7 _& ~. n) @9 W - */3 [# h0 g- Y( J$ b+ d
- private static final long serialVersionUID = 1L;
; U% n+ {& P! T' E. Y P - static JFrame hp = new JFrame("家庭理财系统帮助");
, f9 v& p' V1 b% n% N4 z9 f - static JPanel help = new JPanel();& M Q3 G! I! S! W
- static JButton bt = new JButton("退出");
5 g( Q( y- O2 d3 x N4 P% } - static JLabel lb1 = new JLabel("帮助:");
: c" |- \( W# |3 o: W# \ - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
: {: P5 m- N) z& M - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
' w {% l+ \* ?: K4 I - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");
: P2 D/ i) v9 ? - static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");6 h8 ~( n+ |$ u2 d7 s
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
6 ?; a# }3 j4 w; H5 m, W, f1 O - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
; U0 q0 |2 o! ^7 }# f( R - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
3 F' `2 F: Q$ `8 ~6 C! U9 I - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");4 J! M+ Y/ O3 L2 n
- + ? I' x# k2 j' l V2 h
- public Help(){# T* |1 s( z8 B+ V) a
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
7 `, G& m& w+ {9 Y% b$ b - help.setLayout(null);hp.setLayout(null);
- U# N( N! P/ L" t+ Z - hp.setBounds(270, 180, 520, 300);3 C1 a: S# |+ [0 ]7 { A! t
- help.setBounds(0, 0, 520, 200);6 {; q6 ^* ?8 N. R- O
- hp.setResizable(false);
8 U* y+ g/ I- g T/ d - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
+ P% V5 v" H! d0 h5 q+ w6 u. a - lb1.setBounds(15, 20, 600, 20);help.add(lb1); % a4 A7 `! y2 K j( O1 J
- lb2.setBounds(15, 40, 600, 20);help.add(lb2);
4 R+ W3 Y& n# ~& g% c# [ - lb3.setBounds(15, 60, 600, 20);help.add(lb3);
, t7 c2 @" h) P3 ` - lb4.setBounds(15, 80, 600, 20);help.add(lb4);$ L: R! @: T2 ?/ k: {1 }6 n
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);
% |& q( z; J/ C& O6 k$ E - lb6.setBounds(15, 120, 600, 20);help.add(lb6);
/ o( p& ]9 N! Q. K; S" r6 J0 } - lb7.setBounds(15, 140, 600, 20);help.add(lb7);5 y0 t" |7 i: M3 c; `6 b$ S
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);5 U) ]9 J L; |
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);
- Z5 y9 j _8 e% s0 o" i - hp.add(help);
$ A; G: v" S6 \6 p0 h - hp.setVisible(true);
( A& f+ q& V- C$ j6 H2 f, ] - help.setVisible(true);3 C8 r# \+ X3 T0 ]
- 4 q) R6 _- |( d- F
- }
1 M' A- P. E H# V7 l+ M -
, |, A5 t4 m4 M& ?1 [1 u/ N. w - public void actionPerformed(ActionEvent e){
4 {) p1 S3 O& M9 B - hp.setVisible(false);4 o. h+ H7 E% l$ ^8 w$ z
- }# R% ?$ ~) i8 @: g( B, t
- public static void main(String[] args) {
3 G" n0 {; d! | Z+ z - //new Help();
& t4 x6 N5 v+ L! P1 e* q - }( `% d8 W8 G0 m6 K/ J( p
" t) T' ]1 T" n! r; U- }' [+ k3 c$ ?- k3 \3 d g! ^7 G
复制代码 项目源码下载地址:点击下载1 v) A) V0 q) a9 e
1 G1 @' v% N% ], j ( ~* ?1 y" {0 h( P& a$ p. L
4 K; o/ u" W/ ?/ V* V
- B o3 W5 L& z6 T2 U
|