• 大小: 858KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-02
  • 语言: Java
  • 标签: tag  

资源简介

纯JavaSwing界面,后台是Mysql数据库。用JavaSwing界面操作连接数据库,新增,修改,删除数据。多条件搜索数据,纯javaSwing界面统计图。

资源截图

代码片段和文件信息

package com.zf.hrms.common;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.Jframe;
import javax.swing.UIManager;

public class Common {

/* 设置窗口剧中显示 */
public static void setCenter(Jframe frame) {
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getSize();
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
}
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
frame.setLocation((screenSize.width - frameSize.width) / 2
(screenSize.height - frameSize.height) / 2);
}

/* 设置窗口样式 */
public static void setWindowstyle(Jframe frame) {
String style = “com.sun.java.swing.plaf.windows.WindowsLookAndFeel“;
// style = “javax.swing.plaf.metal.metalLookAndFeel“;
// style = “com.sun.java.swing.plaf.motif.MotifLookAndFeel“;
try {
UIManager.setLookAndFeel(style);
} catch (Exception e) {
e.printStackTrace();
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-25 09:16  JavaSQL\
     文件         718  2017-06-20 21:23  JavaSQL\.classpath
     文件         383  2017-06-19 16:33  JavaSQL\.project
     目录           0  2018-01-25 09:16  JavaSQL\.settings\
     文件         598  2017-06-19 16:33  JavaSQL\.settings\org.eclipse.jdt.core.prefs
     目录           0  2017-12-17 22:49  JavaSQL\bin\
     目录           0  2017-12-17 22:49  JavaSQL\bin\com\
     目录           0  2017-12-17 22:49  JavaSQL\bin\com\zf\
     目录           0  2017-12-17 22:49  JavaSQL\bin\com\zf\hrms\
     目录           0  2018-01-25 09:16  JavaSQL\bin\com\zf\hrms\common\
     文件        1312  2017-12-18 07:51  JavaSQL\bin\com\zf\hrms\common\Common.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\dao\
     文件        4738  2017-12-18 07:58  JavaSQL\bin\com\zf\hrms\dao\ConnectionManager.class
     文件        3891  2017-12-18 07:56  JavaSQL\bin\com\zf\hrms\dao\Gaimi.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\dao\dept\
     文件        2913  2017-12-18 08:25  JavaSQL\bin\com\zf\hrms\dao\dept\DeptDao.class
     文件         744  2017-12-17 22:49  JavaSQL\bin\com\zf\hrms\dao\dept\UsersVo.class
     文件        4055  2017-12-18 08:05  JavaSQL\bin\com\zf\hrms\dao\loginUI.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\dao\person\
     文件        4496  2017-12-17 22:49  JavaSQL\bin\com\zf\hrms\dao\person\PersonDao.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\dao\position\
     文件        2827  2017-12-17 22:49  JavaSQL\bin\com\zf\hrms\dao\position\PositionDao.class
     文件        3860  2017-12-18 08:17  JavaSQL\bin\com\zf\hrms\dao\regUIS.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\dao\stats\
     文件        1074  2017-12-18 08:32  JavaSQL\bin\com\zf\hrms\dao\stats\StatsDao.class
     目录           0  2017-12-17 22:49  JavaSQL\bin\com\zf\hrms\entity\
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\entity\dept\
     文件         801  2017-12-18 10:25  JavaSQL\bin\com\zf\hrms\entity\dept\Department.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\entity\person\
     文件        1543  2017-12-18 19:23  JavaSQL\bin\com\zf\hrms\entity\person\Person.class
     目录           0  2018-01-25 09:17  JavaSQL\bin\com\zf\hrms\entity\position\
............此处省略90个文件信息

评论

共有 条评论