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 d7 y' W0 z2 C' Q' @
- import java.awt.event.ActionEvent;' O$ w4 d+ L$ n5 p; @# T
- import java.awt.event.ActionListener;
, K$ p$ ?# _' q3 l5 G. K - import javax.swing.*;9 _- l; B9 K H, F; {9 ]3 p
7 B& ?2 b/ j. }! ~& e- class Help extends JFrame implements ActionListener{0 ~ B: T- { C7 w
- /**
3 `8 z/ y0 ~( h, S4 R! p - * 5 S( [# P' B& v5 o1 N7 x* j& N7 }
- */9 v' Y$ b. C) ~6 u. e* V
- private static final long serialVersionUID = 1L;
# ^; q3 m4 t9 I2 G - static JFrame hp = new JFrame("家庭理财系统帮助");+ S$ |. g+ O4 l( I
- static JPanel help = new JPanel();
; ~+ Y: m6 O" j/ c; f - static JButton bt = new JButton("退出");" U. E; t4 w* p% b, {& y- C
- static JLabel lb1 = new JLabel("帮助:");
8 s2 u! T# H7 e9 R6 X# @# e - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");
$ n/ y: H* k8 ]% a - static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");+ v" Q: n* u. i+ T
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");/ V% y$ q( o. l/ k3 ]6 m4 x( M( k9 a1 v4 I
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");% _. K9 W4 A$ N2 x. W
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
D$ B; L/ n" h - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
6 T- Q& N8 S$ @# N: Z# _! o - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
' @' h% ?# ~9 D/ T - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");" |' d7 N; O0 ]" y
-
; D4 O& I$ o1 a/ K$ ^ - public Help(){) ]4 ~9 s+ c! W
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
$ N! N3 t( H2 \. S- D - help.setLayout(null);hp.setLayout(null);
+ W0 ^; s6 G% o; S/ _2 H r - hp.setBounds(270, 180, 520, 300);
" U4 ^+ [- `3 ~# R! X1 H - help.setBounds(0, 0, 520, 200);
$ |& d1 t$ f: \, J% \4 j- d - hp.setResizable(false);2 L: |5 T5 [# g7 s9 B
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
9 p$ K5 ?* R' d: Y2 p6 S! s3 q8 }# J - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
3 F5 E! B* u; B - lb2.setBounds(15, 40, 600, 20);help.add(lb2);
8 `+ C+ w2 f H/ M - lb3.setBounds(15, 60, 600, 20);help.add(lb3);
7 i& M* M# ^( c, | - lb4.setBounds(15, 80, 600, 20);help.add(lb4);* ~- p9 w5 T& e
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);+ @& \+ `& _- Z0 b7 J& V O9 [
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);5 D9 i4 I0 L4 c2 B1 `( v
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);. o+ R, q& C5 j1 G- W
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
$ z9 A- |! h7 @& o7 e - lb9.setBounds(15, 180, 600, 20);help.add(lb9);. k* ]3 E* [; G0 Y0 M: O! I
- hp.add(help);
, ~- ^2 @# P, k - hp.setVisible(true);
- h: a) Z) `( D! b0 C S _/ A2 f - help.setVisible(true);; H: B1 o4 n4 L, ?' G, M( y R( S
-
" S/ j% K, X9 H3 G c5 u% g - }# v0 W5 d$ V; F9 i9 L. T& |; @
- 6 w. X. [6 N t9 }# r, J
- public void actionPerformed(ActionEvent e){' @, Z6 B' F3 E! w
- hp.setVisible(false);
2 a8 p" ~! A" m8 c. q& C - }9 A$ n: T- w$ R) ?* \
- public static void main(String[] args) {
" ~6 x$ r, G$ q* \# k6 N0 M" f - //new Help();# L1 B; a2 Q9 l* i& n
- }
8 A+ E0 B6 o, e' v' S$ k8 E - 9 A6 O, [, e+ v% M5 [ i1 |
- }
! K- H/ F( u M' A+ k: |. o0 y! d
复制代码 项目源码下载地址:点击下载1 `( X% l; \" u: M; \
3 y/ K% t$ K% j" d2 ?
! d& j) s, Y# d, C3 d' t r$ [2 h5 i- e- w/ Y1 Q: u& P" }9 A
$ {- L" |' u: I! N2 d5 s7 g6 s |