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
1 y, O: E) q3 j' Z6 S9 P - import java.awt.event.ActionEvent;% R6 H C a! f, @ ]/ Z7 q8 R
- import java.awt.event.ActionListener;% X3 [0 f; f& j8 \9 E
- import javax.swing.*;$ u! _' E* z/ W, U @
- % e3 f. Y) |) D9 o( H
- class Help extends JFrame implements ActionListener{9 l) l3 b3 t! p! s' M
- /**
% R* B8 I1 [0 r3 R - *
! e7 m( P# @- v% m* t" g1 b' b - */3 A; h+ i j7 B# k, N4 b, ]
- private static final long serialVersionUID = 1L;
- \* Z; E# T1 s* y - static JFrame hp = new JFrame("家庭理财系统帮助");
/ u! w: K8 [: Y6 x0 j6 H" x - static JPanel help = new JPanel();* r$ w# Q, M! w) \, N$ D+ ^
- static JButton bt = new JButton("退出");/ p; `$ m( U( o. J% h
- static JLabel lb1 = new JLabel("帮助:");
, f$ D9 ?4 J" T( U* w - static JLabel lb2 = new JLabel(" 1、 修改密码:单击修改密码,则直接输入新的密码,然后确定就可以了;");/ Y+ M1 ~* f# G0 p
- static JLabel lb3 = new JLabel(" 2、 修改数据:单击修改数据,然后选择要修改的对象的序号,再按需要修改;");& w4 }) }; F7 d! f- j
- static JLabel lb4 = new JLabel(" 3、 删除数据:单击删除数据,然后选择要删除的对象的序号,直接点击删除;");7 {3 y( ~/ [) F4 S2 W
- static JLabel lb5 = new JLabel(" 4、 财务统计:单击统计,可以按照给定的规则处理,可以按照某一时间进行统计;");
( B9 Q0 [9 O0 o! K! ]- R - static JLabel lb6 = new JLabel(" 5、 总结余——显示的是最后的总计,与现款直接对应,简单明了;");8 X' U: Q m1 f4 x3 A, v( |
- static JLabel lb7 = new JLabel(" 6、 程序的初始密码为:123;");
! p1 U, K$ k0 ?" b* u, s# ` r - static JLabel lb8 = new JLabel(" 7、 单击添加,则可以在该行右边直接按次序输入财务信息;");
- s9 B j2 F1 \ H - static JLabel lb9 = new JLabel(" 8、 本程序为潘海强和钟余洋开发,望大家多多提些建议。");3 x# J5 J( _' ]0 P4 Y
- " W* q$ `1 ]; \1 {1 _ r
- public Help(){
, [. t& a# k* ~3 a1 }* w5 @- O - hp.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
6 F1 @8 \, s {6 j - help.setLayout(null);hp.setLayout(null);* s) b1 n: E& |. [6 c, K
- hp.setBounds(270, 180, 520, 300);
! L$ j; F a" {4 z3 q! e5 I. b - help.setBounds(0, 0, 520, 200);$ R$ e$ k# N9 n; h! }9 g; x
- hp.setResizable(false);
' }: P7 @" ?4 y - bt.setBounds(150, 220, 200, 40); hp.add(bt); bt.addActionListener(this);
8 L# Q* q9 b% t9 C* f - lb1.setBounds(15, 20, 600, 20);help.add(lb1);
8 f5 o* a. j3 [ b: m - lb2.setBounds(15, 40, 600, 20);help.add(lb2);7 }/ f6 q W" ]1 U$ J
- lb3.setBounds(15, 60, 600, 20);help.add(lb3);
3 G; h1 p d9 {0 B4 u9 J - lb4.setBounds(15, 80, 600, 20);help.add(lb4);
! X S7 O3 R: W$ r - lb5.setBounds(15, 100, 600, 20);help.add(lb5);# D, L. @8 R" t" R3 {7 [ D
- lb6.setBounds(15, 120, 600, 20);help.add(lb6);
# C2 E! ~; p6 @+ V - lb7.setBounds(15, 140, 600, 20);help.add(lb7);
9 {* C! a3 B$ m - lb8.setBounds(15, 160, 600, 20);help.add(lb8);- g, i& h! h4 D: d. k$ Z7 t
- lb9.setBounds(15, 180, 600, 20);help.add(lb9);2 r+ W3 N8 S6 N
- hp.add(help);
( v3 G B" n3 [) E" W - hp.setVisible(true);
; d5 N) Q# K; f1 ]4 T( P5 ~ - help.setVisible(true);, i8 s& l# |, M. |; U
-
1 Z$ f2 i) `; Z- Y* E* @/ H$ ] - }
3 I. M9 z6 F- G" X4 q -
; d+ q% C% |8 ? - public void actionPerformed(ActionEvent e){" Q& N4 w3 x% [4 ^" e
- hp.setVisible(false);6 C' h0 T2 k0 [/ ?: ~
- }# a$ o( c- n! A* F/ D4 k
- public static void main(String[] args) {& y7 ]# W+ a: \
- //new Help();
- d! @/ j! `, z1 ]% w N - }
" C" D$ Q1 r1 i1 D9 X2 e
1 ]5 \5 A$ [: ~% B5 B- }
* h6 O: m, [ u& @2 D' g" y, s
复制代码 项目源码下载地址:点击下载: Y4 K, |2 N& I; {
8 U% k+ q; Q" C; B7 Z
; \. M0 C2 k# i- b( n" A1 d" U5 J9 r2 ]/ z {* ~
# K6 Q# Q7 H" a
|