package swing;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.FileDialog;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.JFileChooser;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import java.awt.GridBagConstraints;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JTabbedPane;
import java.awt.Rectangle;
import javax.swing.JToolBar;
import java.awt.ScrollPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;
import java.util.Locale;
import javax.swing.JTable;
import javax.swing.JScrollPane;
import javax.swing.table.DefaultTableModel;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.AxisLocation;
import org.jfree.chart.labels.StandardCategoryItemLabelGenerator;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;
import sun.security.smartcardio.SunPCSC.Factory;
import com.eltima.components.ui.DatePicker;
import com.shyhao.software.BarChartDemo;
import cal.CalFrame;
import jdbc.Diary;
import jdbc.Tally;
import jdbc.Tallyclass;
import jdbc.TestConn;
import javax.swing.border.TitledBorder;
public class JFrame_main extends JFrame {
private static final long serialVersionUID = 1L;
private JMenuBar jJMenuBar = null;
private JMenu menu_manage = null;
private JMenu menue_income = null;
private JMenu menu_help = null;
private JMenuItem item_relogin = null;
private JMenuItem item_setpw = null;
private JPanel panel_main = null;
private JPanel Panel_left = null;
private JButton Left_btn_account = null;
private JButton Left_btn_tally = null;
private JButton Left_btn_images = null;
private JButton Left_btn_diary = null;
private JButton Left_btn_community = null;
private JPanel panel_bottom = null;
private JLabel Bottom_lbl_name = null;
private JLabel Bottom_lbl_income = null;
private JLabel Bottom_lbl_payout = null;
private JTextField Bottom_txt_name = null;
private JTextField Bottom_txt_income = null;
private JTextField Bottom_txt_payout = null;
private JPanel panel_center = null;
private JPanel panel_myaccount = null;
private JPanel panel_tally = null;
private JPanel tally_top = null;
private JButton tally_top_btn_insert = null;
private JButton tally_top_btn_modify = null;
private JButton tally_top_btn_cancel = null;
private JButton tally_top_btn_excel = null;
private JPanel panel_tally_center = null;
private JMenuItem item_cancel = null;
private JMenuItem item_tally = null;
private JMenuItem item_incomeclass = null;
private JMenuItem item_diary = null;
private JMenuItem item_cal = null;
private JPanel panel_myaccount_1 = null;
private JPanel panel_myaccount_2 = null;
private JPanel panel_myaccount_3 = null;
private JPanel panel_myaccount_4 = null;
private JPanel panel_myaccount_5 = null;
private JLabel lbl_account_name = null;
private JLabel lbl_account_value = null;
private JLabel lbl_relogin = null;
private JLabel lbl_setpassword = null;
private JLabel lbl_account_tally = null;
private JLabel lbl_account_class = null;
private JLabel lbl_diary = null;
private JLabel lbl_cal = null;
private JPanel panel_tally_diary = null;
private JPanel panel_diary_top = null;
private JButton btn_write_diary = null;
private JButton btn_modify_diary = null;
private JButton btn_delete_diary = null;
private JPanel panel_diary_table = null;
private JScrollPane ScrollPane_diary = null;
static JTable diary_table = null;
private JScrollPane jScrollPane_tally = null;
static JTable jTable_tally = null;
static DefaultTableModel dm1 = null;
static DefaultTableModel dm2 = null;
private JLabel lbl_extrdata = null;
private JLabel lbl_resume = null;
private JLabel lbl_comparetally = null;
private JLabel lbl_avgtally = null;
private JLabel lbl_monthcomparetally = null;
private JLabel lbl_text = null;
String head1[] = { "编号", "日期", "概要" };
static String head[] = { "编号", "日期", "收入类型", "收入金额", "支出类型", "支出金额", "余额",
"备注", "记账人" }; // @jve:decl-index=0:
static Object comemoney;
static Object tomoney;
static Object remark;
static Integer id;
static Integer diaryid;
static Object text;
TestConn tc = new TestConn(); // @jve:decl-index=0:
private JPanel leftjPanel_date = null;
private JLabel jLabel = null;
private JLabel jLabel1 = null;
private JPanel jPanel_chart = null;
private JPanel jPanel_chart_top = null;
private JLabel jLabel2 = null;
private DatePicker datepick;
private DatePicker datepick1;
private static final String DefaultFormat = "yyyy-MM-dd HH:mm:ss";
private Date date=new Date();
private Font font=new Font("Times New Roman", Font.BOLD, 14); // @jve:decl-index=0:
private Dimension dimension=new Dimension(177,24);
private int[] hilightDays={1,3,5,7};
private int[] disabledDays={4,6,5,9};
private JLabel jLabel3 = null;
private JPanel jPanel_chart_center = null;
String sqlpay = "select sum(tallypay) from licai_tally where username=? group by username ";
String sqlincome = "select sum(tallyincome) from licai_tally where username=? group by username ";
private JButton jButton_fresh = null;
public static String starttime = null;
public static String endtime = null;
DefaultCategoryDataset data=null; // @jve:decl-index=0:
ChartPanel p=new ChartPanel(getchar());
/**
* This is the default constructor
*/
public JFrame_main() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
* @throws IOException
*/
private void initialize() {
this.setSize(750, 477);
this.setContentPane(getPanel_main());
this.setJMenuBar(getJJMenuBar());
this.setTitle("轻松理财");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.validate();
this.setVisible(true);
}
/**
* This method initializes jJMenuBar
*
* @return javax.swing.JMenuBar
*/
private JMenuBar getJJMenuBar() {
if (jJMenuBar == null) {
jJMenuBar = new JMenuBar();
jJMenuBar.add(getMenu_manage());
jJMenuBar.add(getMenue_income());
jJMenuBar.add(getMenu_help());
}
return jJMenuBar;
}
/**
* This method initializes menu_manage
*
* @return javax.swing.JMenu
*/
private JMenu getMenu_manage() {
if (menu_manage == null) {
menu_manage = new JMenu("账簿管理");
menu_manage.add(getItem_relogin());
menu_manage.add(getItem_setpw());
menu_manage.add(getItem_cancel());
}
return menu_manage;
}
/**
* This method initializes menue_income
*
* @return javax.swing.JMenu
*/
private JMenu getMenue_income() {
if (menue_income == null) {
menue_income = new JMenu("收支管理");
menue_income.add(getItem_tally());
menue_income.add(getItem_incomeclass());
}
return menue_income;
}
/**
* This method initializes menu_help
*
* @return javax.swing.JMenu
*/
private JMenu getMenu_help() {
if (menu_help == null) {
menu_help = new JMen
没有合适的资源?快使用搜索试试~ 我知道了~
Java Swing做的一个理财软件,有源码,可以参考学习,适合初学者
共145个文件
class:96个
java:29个
jpg:6个
4星 · 超过85%的资源 需积分: 4 42 下载量 54 浏览量
2011-03-06
23:52:35
上传
评论 2
收藏 1.33MB RAR 举报
温馨提示
Java Swing做的一个理财软件,有源码,可以参考学习,适合初学者,数据库是SqlServer2005
资源推荐
资源详情
资源评论
收起资源包目录
Java Swing做的一个理财软件,有源码,可以参考学习,适合初学者 (145个子文件)
JFrame_main.class 27KB
TestConn.class 16KB
JFrame_register.class 8KB
JFrame_incomemodify.class 7KB
JFrame_income.class 7KB
JFrame_diary.class 6KB
JFrame_diarymodify.class 5KB
BarChart3DDemo4.class 5KB
BarChartDemo.class 5KB
CalFrame.class 5KB
Tally_table.class 5KB
JFrame_addclass.class 5KB
TestTable.class 4KB
JFrame_class.class 4KB
JFrame_login.class 4KB
JFrame_getpassword.class 4KB
JFrame_updatepassword.class 4KB
CalService.class 4KB
DatePickerWin.class 3KB
JFrame_income$2.class 3KB
JFrame_main$16.class 3KB
JFrame_incomemodify$2.class 3KB
JFrame_register$5.class 3KB
Table_Model.class 2KB
JFrame_addclass$1.class 2KB
JFramecard.class 2KB
JFrame_main$9.class 2KB
Tally.class 2KB
User.class 2KB
JFrame_diary$2.class 2KB
JFrame_updatepassword$2.class 2KB
Test.class 2KB
JFrame_diarymodify$2.class 2KB
JFrame_main$27.class 2KB
CalFrame$1.class 2KB
JFrame_login$4.class 2KB
JFrame_main$8.class 2KB
JFrame_main$7.class 1KB
JFrame_main$23.class 1KB
JFrame_main$19.class 1KB
JFrame_main$21.class 1KB
JFrame_main$26.class 1KB
JFrame_main$18.class 1KB
JFrame_main$17.class 1KB
JFrame_getpassword$2.class 1KB
JFrame_main$20.class 1KB
JFrame_register$2.class 1KB
Tallyclass.class 1KB
JFrame_main$22.class 1KB
JFrame_main$25.class 1KB
DBConn.class 1KB
JFrame_updatepassword$1.class 1KB
JFrame_main$11.class 1KB
JFrame_register$4.class 1KB
JFrame_incomemodify$1.class 1KB
MyMath.class 1KB
JFrame_diarymodify$1.class 1KB
JFrame_getpassword$1.class 1KB
JFrame_register$3.class 1KB
JFrame_income$1.class 1KB
JFrame_main$15.class 1KB
JFrame_diary$1.class 1KB
JFrame_register$1.class 1KB
JFrame_login$1.class 1KB
BarChart3DDemo4$CustomBarRenderer3D.class 1KB
JFrame_register$6.class 1KB
JFrame_main$1.class 1KB
JFrame_login$2.class 1KB
JFrame_main$12.class 1KB
JFrame_login$3.class 1KB
JFrame_main$13.class 1KB
JFrame_main$10.class 1KB
JFrame_main$14.class 1KB
JFrame_main$6.class 1004B
JFrame_main$2.class 925B
JFrame_main$4.class 924B
JFrame_main$3.class 923B
JFrame_main$5.class 923B
Diary.class 890B
BarChartDemo$1.class 842B
Testexcel.class 829B
JFrame_incomemodify$4.class 807B
JFrame_income$4.class 771B
JFrame_main$24.class 766B
Test.class 758B
JFrame_incomemodify$3.class 758B
JFrame_diarymodify$3.class 752B
JFrame_class$1.class 722B
JFrame_income$3.class 722B
JFrame_diary$3.class 716B
Tally_table$2.class 662B
Tally_table$3.class 662B
Tally_table$1.class 662B
TestTable$1.class 650B
TestTable$3.class 650B
TestTable$2.class 650B
.classpath 1KB
Thumbs.db 11KB
Thumbs.db 11KB
sqljdbc.jar 301KB
共 145 条
- 1
- 2
godgod160
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Javascript和Vue的微信小程序抽奖打地鼠游戏设计源码 - 抽奖打地鼠
- 基于Python和Javascript的车展大屏演示前后端web应用设计源码 - autoshow
- 基于Javascript和微信小程序的Anna设计源码
- 基于Java的仿制品设计源码 - bilibili
- 基于Javascript的影视动画设计源码 - cad
- 基于Java和深度学习的瓦斯浓度预测系统后端设计源码 - 瓦斯浓度预测后端
- Screenshot_20240528_103010.jpg
- 基于Python的新能源承载力计算及界面设计源码 - HAINING-DG
- 基于Java的本科探索学习项目设计源码 - 本科探索
- 基于Javascript和Python的微商城项目设计源码 - MicroMall
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页