JAVA儿童教育系统计算机毕业设计Mybatis+系统+数据库+调试部署

JAVA儿童教育系统计算机毕业设计Mybatis+系统+数据库+调试部署

JAVA儿童教育系统计算机毕业设计Mybatis+系统+数据库+调试部署

本源码技术栈:

项目架构:B/S架构

开发语言:Java语言

开发软件:idea eclipse

前端技术:Layui、HTML、CSS、JS、JQuery等技术

后端技术:JAVA

运行环境:Win10、JDK1.8

数 据 库:MySQL5.7/8.0

源码地址:https://pan.baidu.com/s/1iSB8zIwIfL3RJTFkLf9fYQ?pwd=j6zf

最新计算机专业原创开发毕业设计源码+数据库是近期作品

【1】药品销售管理系统
【2】springboot在线小说系统
【3】jsp书香校园阅读平台
【4】ssm校园闲置物品交换平台系统
【5】jsp基于Web的电子邮件系统xns程序论文开题
【6】jsp车辆调度管理系统
【7】jspm电力营销计费管理系统rz程序
【8】springboot汽车零件厂绩效管理
【9】ssm原创网络文学管理系统
【10】ssm喜枫日料店自助点餐系统
【11】ssm供电公司安全生产考试系统
【12】ssm水库洪水预报调度系统
【13】springboot汽车售后服务管理系统
【14】sppringboot张家口市旅游网
【15】ssm学校图书馆管理系统
【16】jsp贫困助学管理系统
【17】jsp招聘信息系统
【18】springboot基于网络平台个人博客系统
【19】ssm学生住宿管理平台
【20】ssm平面设计作品管理系统
【21】springcloud基于springcloud的药品销售系统
【22】springboot车险销售管理系统
【23】javaJAVA跳棋游戏的设计与开发
【24】springboot知识库系统
【25】springboot在线课程教学大纲系统
【26】ssm网上超市系统
【27】ssm交通非现场执法系统
【28】ssm企业人事管理系统
【29】jsp衡水特产展销系统
【30】jspm恩施州特色农产品的种植规划系统
【31】jspeonvan数字工坊网站
【32】jsp基于公选课的选课系统
【33】ssm预装箱式净水站可视化信息管理系统
【34】ssm学生课堂互动教学系统
【35】springboot小徐影城管理系统
【36】java基于ssh论坛
【37】ssm幼儿园管理系统
【38】jsp足球赛会管理系统
【39】ssm在线直播平台
【40】ssm成都某S店销售管理系统
【41】ssm新生报到管理系统
【42】jspm宅急送物流管理系统tzzA(系统+论文)
【43】springboot人才申报系统
【44】ssm学生选课系统
【45】ssm医院医患管理系统
【46】springboot病人跟踪治疗信息系统
【47】ssm美食网站
【48】ssm能源类网站平台
【49】ssm软件测试管理系统
【50】jsp小学教师课程管理系统
【51】ssm移动电商网站
【52】springboot网上购物商城系统研发
【53】ssm学习类视频网站
【54】ssm基于智慧农业的水果销售系统
【55】ssm亦心化妆品网站
【56】ssm游戏论坛设计
【57】ssm银创科技有限公司人事信息系统
【58】ssm课题申报系统
【59】jsp精准扶贫管理系统
【60】jsp问卷调查系统
【61】ssm宠物用品交易网站
【62】ssm科研团队管理系统
【63】ssm留学生交流互动论坛网站
【64】ssm家电仓储管理系统
【65】ssm养老机构系统
【66】ssm保险公司客户信息管理系统
【67】springboot二手书店设计
【68】成绩
【69】ssm校园超话网站
【70】ssm普通中学教职工信息管理系统
【71】ssm基于Vue.js的网上书城管理系统的设计与实现
【72】ssm社区养老院管理系统
【73】springboot毕业生就业去向登记管理系统
【74】ssm在线教学质量评价系统
【75】ssm个人财务管理系统
【76】springboot基于SpringBoot智能家电商城
【77】springboot+sqlserver校园服装租赁系统
【78】jsp信息化协会信息公开和服务平台
【79】ssm高校社区生鲜配送系统
【80】springboot便行顺风车出行系统
【81】ssm作业管理系统设计
【82】ssm校园办公管理系统
【83】jsp课程在线反馈系统
【84】ssm西宁市农副产品物流信息系统
【85】springboot高铁站失物招领平台
【86】jsp宠物医院xns程序论文任务书开题
【87】jsp校园快递代领系统
【88】springboot小区停车场管理系统
【89】jspm物流信息管理系统hsg
【90】ssm流浪动物的救助管理平台
【91】ssm校园疫情信息管理系统
【92】ssm宠物爱心救助系统
【93】jsp德育分统计学生活动事项
【94】ssm白樵校园物品交易系统
【95】springboot医疗病历交互系统
【96】ssm旅游资源网站
【97】springboot高校智慧校园学生系统
【98】ssm课堂互动应答系统
【99】springboot景区管理系统
【100】ssm高校医务管理系统
【101】ssm教师科研成果管理
【102】jsp贝儿宠物店管理系统的设计与实现
【103】ssm疫情下智慧社区系统
【104】ssm产学研项目申报平台系统
【105】springboot药品管理系统
【106】jsp校园快递联盟系统
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
package cn.com.edu.view.frame; import java.awt.AWTException; import java.awt.BorderLayout; import java.awt.CardLayout; import java.awt.Dimension; import java.awt.GridBagLayout; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSplitPane; import javax.swing.JToolBar; import org.jvnet.substance.SubstanceLookAndFeel; import org.jvnet.substance.skin.FindingNemoSkin; import cn.com.edu.action.JMenuItemAction; import cn.com.edu.action.MainFrameAction; import cn.com.edu.util.GBC; import cn.com.edu.view.panel.AddStudentInfoPanel; import cn.com.edu.view.panel.FindStudentInfoPanel; /** * 教务管理系统主界面 * * @author Administrator * */ public class MainFrame extends JFrame { private static MainFrame instance; private JMenuBar bar;// 菜单条 private JMenu studentJMenu;// 菜单 private JMenu teacherJMenu;// 菜单 private JPanel center = new JPanel();// 中心面板用来放置卡片 private CardLayout card = new CardLayout();// 卡片布局 private JPanel west;// 西边面板 private JSplitPane split;// 分割面板 private JToolBar tool;// 工具条 private MainFrameAction action = new MainFrameAction(this);// 按钮事件对象 private JMenuItemAction menuItemAction = new JMenuItemAction(this);// 菜单事件对象 private SystemTray tray;// 系统托盘 private TrayIcon trayIcon;// 设置系统托盘的图片 /** * 使用单子设计模式主界面对象 * */ private MainFrame() { init(); } public static MainFrame getInstance() { if (instance == null) { instance = new MainFrame(); } return instance; } /** * 初始化主界面 * */ public void init() { // 设置标题 this.setTitle("教务管理系统"); // 设置标题图片 ImageIcon icon = new ImageIcon("img/switchuser.png"); this.setIconImage(icon.getImage()); // 得到屏幕对象 Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); // 设置主界面大小 this.setSize(size.width, size.height - 20); // 设置居中 this.setLocationRelativeTo(null); // 添加工具条 this.add(createTool(), BorderLayout.NORTH); // 将菜单添加到主界面 this.setJMenuBar(createJMenuBar()); // 将卡片添加到主界面 center.setLayout(card); addCardPanel(center); this.add(createSplit()); // 设置关闭主界面 this.setDefaultCloseOperation(this.DO_NOTHING_ON_CLOSE); //创建系统托盘 createSystemTray(); //关闭窗口事件 closeWindow(this); // 设置显示主界面 this.setVisible(true); } public JMenuBar createJMenuBar() { if (bar == null) { bar = new JMenuBar(); studentJMenu = createJMenu("学生管理"); teacherJMenu = createJMenu("老师管理"); addJMenuItem(studentJMenu, "添加学生信息"); addJMenuItem(studentJMenu, "查询学生信息"); addJMenuItem(studentJMenu, "修改学生信息"); addJMenuItem(studentJMenu, "删除学生信息"); studentJMenu.addSeparator(); addJMenuItem(studentJMenu, "退出"); bar.add(studentJMenu); bar.add(teacherJMenu); } return bar; } /** * 创建菜单 * * @param name * @return */ private JMenu createJMenu(String name) { JMenu menu = new JMenu(name); return menu; } /** * 将创建的菜单项添加到菜单 * * @param menu * @param name */ private void addJMenuItem(JMenu menu, String name) { JMenuItem item = new JMenuItem(name); item.addActionListener(menuItemAction); menu.add(item); } /** * 用于添加卡片 * * @param center */ public void addCardPanel(JPanel center) { JPanel jp2 = new JPanel(); JPanel jp3 = new JPanel(); JPanel jp4 = new JPanel(); jp2.add(new JButton("卡片2")); jp3.add(new JButton("卡片3")); jp4.add(new JButton("卡片4")); center.add(new AddStudentInfoPanel(), "添加学生信息"); center.add(new FindStudentInfoPanel(), "查询学生信息"); center.add(jp3, "修改学生信息"); center.add(jp4, "删除学生信息"); } /** * 创建西边面板,用添加选项按钮 * * @return */ public JPanel createWestPanel() { if (west == null) { west = new JPanel(); west.setLayout(new GridBagLayout()); west.add(createButton("添加学生信息", "img/switchuser.png"), new GBC(0, 0).setInset(10)); west.add(createButton("查询学生信息", "img/switchuser.png"), new GBC(0, 1).setInset(10)); west.add(createButton("修改学生信息", "img/switchuser.png"), new GBC(0, 2).setInset(10)); west.add(createButton("删除学生信息", "img/switchuser.png"), new GBC(0, 3).setInset(10)); } return west; } /** * 创建按钮方法 * * @param name * @return */ public JButton createButton(String name, String icon) { JButton button = new JButton(name); button.setIcon(new ImageIcon(icon)); button.addActionListener(action); return button; } public CardLayout getCard() { return card; } public JPanel getCenter() { return center; } /** * 分割面板 * * @return */ public JSplitPane createSplit() { if (split == null) { split = new JSplitPane(); split.setOneTouchExpandable(true); split.setLeftComponent(createWestPanel()); split.setRightComponent(center); } return split; } /** * 创建工具条 * * @return */ public JToolBar createTool() { if (tool == null) { tool = new JToolBar(); tool.add("添加学生信息", createButton("添加学生信息", "img/switchuser.png")); tool.add("查询学生信息", createButton("查询学生信息", "img/switchuser.png")); tool.add("修改学生信息", createButton("修改学生信息", "img/switchuser.png")); tool.add("删除学生信息", createButton("删除学生信息", "img/switchuser.png")); tool.add("帮助", createButton("帮助", "img/syssetup.png")); } return tool; } ///////////////////////////系统托盘设置///////////////////////////////////// /** * 窗口事件 * * @param jframe */ public void closeWindow(MainFrame jframe) { jframe.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { int show = JOptionPane.showConfirmDialog(null, "是否确定关闭?", "确认关闭系统", JOptionPane.YES_NO_OPTION); if (show == JOptionPane.YES_OPTION) { System.exit(0); } } public void windowIconified(WindowEvent e) { if (getState() == 1) {// 最小化 try { tray.add(trayIcon); } catch (AWTException e1) { e1.printStackTrace(); } setVisible(false); } } }); } /** * 创建系统托盘 * */ public void createSystemTray() { // 得到当前系统的托盘对象 tray = SystemTray.getSystemTray(); ImageIcon icon = new ImageIcon("img/2.png"); // 添加鼠标右键 弹出菜单 PopupMenu menu = new PopupMenu(); MenuItem show = new MenuItem("显示窗体"); MenuItem exit = new MenuItem("退出窗体"); trayIcon = new TrayIcon(icon.getImage(), "学生管理系统", menu); trayIcon.addMouseListener(new MouseAdapter() { /** * 鼠标点击事件 */ public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) {// 鼠标双击 tray.remove(trayIcon); setVisible(true); // 设置窗口全屏 setExtendedState(JFrame.MAXIMIZED_BOTH); } } }); /** *鼠标右键显示窗体 */ show.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tray.remove(trayIcon); setVisible(true); // 设置窗口全屏 setExtendedState(JFrame.MAXIMIZED_BOTH); } }); /** * 鼠标右键关闭窗体 */ exit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int show = JOptionPane.showConfirmDialog(null, "是否确定关闭?", "确认关闭系统", JOptionPane.YES_NO_OPTION); if (show == JOptionPane.YES_OPTION) { System.exit(0); } } }); menu.add(show); menu.add(exit); } /** * @param args */ public static void main(String[] args) { SubstanceLookAndFeel.setSkin(new FindingNemoSkin()); // 蓝色幽灵 // SubstanceLookAndFeel.setSkin(new OfficeBlue2007Skin()); // 麦田风光 // SubstanceLookAndFeel.setSkin(new FieldOfWheatSkin()); // 默认皮肤 // SubstanceLookAndFeel.setSkin(new BusinessSkin()); // 朦胧风格 // SubstanceLookAndFeel.setSkin(new MistAquaSkin()); MainFrame.getInstance(); } }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值