|
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
4 c) c9 p9 F" J: W& c3 d* | - import java.awt.event.ActionEvent;
( b/ h% k+ D7 S9 I$ v' f* Y - import java.awt.event.ActionListener;
* h) b; M- R+ k9 i - import javax.swing.*;8 F" V, M5 w0 {9 t3 ^" q
& q0 N% H% c) G3 a4 z. g- class Help extends JFrame implements ActionListener{6 S0 K( W0 i& w% j; x$ M8 [
- /**7 o! ]9 p: C1 p1 W0 e" _
- * ; s) h. `: r1 S e' G4 v4 E
- */% r" r" {$ l: P
- private static final long serialVersionUID = 1L;& \) q- M' a+ e
- static JFrame hp = new JFrame("家庭理财系统帮助");1 |" I7 K2 Y3 e' h
- static JPanel help = new JPanel();
7 }' z0 v" t# _2 ? - static JButton bt = new JButton("退出");
& a+ ^7 h2 J9 e - static JLabel lb1 = new JLabel("帮助:");" K* A* i# v; w
- static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");5 M& q' t! ~" m0 ^; |! T# g4 U
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");
2 l; U) z# }5 e$ c4 s! z! C7 ` - static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");0 }% T/ l3 E. ]! |
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");4 Y; I4 m. j6 L3 j. U( j
- static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");
B1 n' F1 I2 ? - static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
% j5 K* ?9 L5 \' X4 m - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
3 |9 H( ?" Z1 r7 U5 j% y* A. \ - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");; i) a. s- g' X
- , [2 {2 b% C1 ?+ G9 k) {, S b! e
- public Help(){: ?7 y' s- _3 u
- hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
' d( A# g) a8 {" @5 s8 Q - help.setLayout(null);hp.setLayout(null);
. O+ s2 ^& b* q( q - hp.setBounds(270, 180, 520, 300);
, j+ [$ s0 l0 t! J - help.setBounds(0, 0, 520, 200);
7 I: o" P" n: V; G. ~/ h% k - hp.setResizable(false);5 y- t- L3 s) o" D) O9 x5 z& l2 j$ I7 ~
- bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);4 c7 K5 g S( _% c5 g: C
- lb1.setBounds(15, 20, 600, 20);help.add(lb1);
! h+ D( F S7 l* I8 J - lb2.setBounds(15, 40, 600, 20);help.add(lb2);: {$ L% g! G- C
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);2 b! @7 g$ _& \9 c! N, \# `! ?
- lb4.setBounds(15, 80, 600, 20);help.add(lb4);4 @/ u2 @( |, i5 r" {
- lb5.setBounds(15, 100, 600, 20);help.add(lb5);
% `. e1 G5 P& g - lb6.setBounds(15, 120, 600, 20);help.add(lb6);) R. G& L6 _: a9 U/ p# K
- lb7.setBounds(15, 140, 600, 20);help.add(lb7);# [$ h& X! a) O! m( {+ }& {
- lb8.setBounds(15, 160, 600, 20);help.add(lb8);
* A$ A0 H' Q6 A1 }$ C# p7 C5 q - lb9.setBounds(15, 180, 600, 20);help.add(lb9);' K1 [. X/ ]: @1 v3 g3 r8 E+ _
- hp.add(help);
" \" w4 s3 g6 T1 J8 `- d - hp.setVisible(true);- ^' O$ ~; @4 Y5 f. }- {3 @
- help.setVisible(true);2 o1 l# E2 i* I2 s. K
- " r4 i; G& ^5 T) ?+ p% q5 P
- }
) ^5 O5 J$ F0 ?$ O -
! k2 ^9 E5 ]' d6 k6 J - public void actionPerformed(ActionEvent e){% b4 |+ `& u6 H1 `( N
- hp.setVisible(false);
9 m+ o9 k. Y$ m% v+ f9 k - }4 @- k5 v/ b: h4 Y$ f5 c# s" ~
- public static void main(String[] args) {# k5 X% ^0 N3 y3 }3 S- L
- //new Help();/ f8 w' u9 y& A( \9 ]9 u
- }
- J, ]1 l: s* } - n. Q% D2 z5 d) m: |7 D/ Y% c
- }
2 H; J. z7 Q0 Y y5 t( o3 @6 k: \
复制代码 项目源码下载地址:点击下载
( F' \& n2 I1 ]' O
* v0 {+ h! S7 ] X& g9 Z ! M" e+ O8 _% a8 j9 Q
) f& I7 r( R+ x. X6 b4 O6 }! L; y) {
5 W0 F$ E0 h8 ?
|