• 大小: 580KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-12
  • 语言: 其他
  • 标签: java  

资源简介

这是一个简易的图书管理系统,使用三层模式(MVC),中间还加了一个可爱的乌龟,相信大家一定会喜欢他的。

资源截图

代码片段和文件信息

package cn.hncu.addressManage;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Event;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;

import javax.swing.JDialog;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.KeyStroke;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;

import cn.hncu.addressManage.UI.ListJPanel;


// mainJframe
public class addressApplication {
private Jframe jframe = null; // @jve:decl-index=0:visual-constraint=“2310“
private JPanel jContentPane = null;
private JMenuBar jJMenuBar = null;
private JMenu fileMenu = null;
private JMenu editMenu = null;
private JMenu helpMenu = null;
private JMenuItem exitMenuItem = null;
private JMenuItem aboutMenuItem = null;
private JMenuItem cutMenuItem = null;
private JMenuItem copyMenuItem = null;
private JMenuItem pasteMenuItem = null;
private JMenuItem saveMenuItem = null;
private JDialog aboutDialog = null; // @jve:decl-index=0:visual-constraint=“98788“
private JPanel aboutContentPane = null;
private JLabel aboutVersionLabel = null;

/**
 * @param args
 */
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
addressApplication application = new addressApplication();
application.getJframe().setVisible(true);
}
});
}

/**
 * This method initializes jframe
 * 
 * @return javax.swing.Jframe
 */
private Jframe getJframe() {
if (jframe == null) {
jframe = new Jframe();
jframe.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
jframe.setBackground(Color.white);
jframe.setLocation(new Point(100 10));
jframe.setJMenuBar(getJJMenuBar());
jframe.setSize(800 650);
jframe.setContentPane(getJContentPane());
jframe.settitle(“Application“);
}
return jframe;
}

/**
 * This method initializes jContentPane
 * 
 * @return javax.swing.JPanel
 */
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.setBackground(Color.white);
// 加一块添加按钮
jContentPane.add(new ListJPanel(jframe null false));
}
return jContentPane;
}

/**
 * This method initializes jJMenuBar
 * 
 * @return javax.swing.JMenuBar
 */
private JMenuBar getJJMenuBar() {
if (jJMenuBar == null) {
jJMenuBar = new JMenuBar();
jJMenuBar.add(getFileMenu());
jJMenuBar.add(getEditMenu());
jJMenuBar.add(getHelpMenu());
}
return jJMenuBar;
}

/**
 * This method initializes jMenu
 * 
 * @return javax.swing.JMenu
 */
private JMenu getFileMenu() {
if (fileMenu == null) {
fileMenu = new JMenu();
fileMenu.setText(“File“);
file

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-08-17 15:29  BooksManagement\
     文件         232  2015-08-17 14:44  BooksManagement\.classpath
     文件         511  2015-08-17 14:44  BooksManagement\.project
     目录           0  2015-08-17 15:29  BooksManagement\bin\
     目录           0  2015-08-17 15:29  BooksManagement\bin\cn\
     目录           0  2015-08-17 15:29  BooksManagement\bin\cn\hncu\
     目录           0  2015-08-17 15:29  BooksManagement\bin\cn\hncu\addressManage\
     目录           0  2015-08-17 15:29  BooksManagement\bin\cn\hncu\addressManage\UI\
     文件         788  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\AddJPanel$1.class
     文件         934  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\AddJPanel$2.class
     文件        4947  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\AddJPanel.class
     文件        1223  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\DeleteJPanel$1.class
     文件         955  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\DeleteJPanel$2.class
     文件        3611  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\DeleteJPanel.class
     文件         948  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ErrorJPanel$1.class
     文件        2059  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ErrorJPanel.class
     文件         874  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ListJPanel$1.class
     文件        1228  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ListJPanel$2.class
     文件        1230  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ListJPanel$3.class
     文件         876  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ListJPanel$4.class
     文件        5031  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\ListJPanel.class
     文件         803  2015-08-17 15:13  BooksManagement\bin\cn\hncu\addressManage\UI\QueryJPanel$1.class
     文件         948  2015-08-17 15:13  BooksManagement\bin\cn\hncu\addressManage\UI\QueryJPanel$2.class
     文件        5466  2015-08-17 15:13  BooksManagement\bin\cn\hncu\addressManage\UI\QueryJPanel.class
     文件         817  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\UpdateJPanel$1.class
     文件         958  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\UpdateJPanel$2.class
     文件        5232  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\UI\UpdateJPanel.class
     文件         802  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\addressApplication$1.class
     文件         857  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\addressApplication$2.class
     文件        1366  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\addressApplication$3.class
     文件        5866  2015-08-17 15:09  BooksManagement\bin\cn\hncu\addressManage\addressApplication.class
............此处省略38个文件信息

评论

共有 条评论