/*
* Main.java
*
* Created on __DATE__, __TIME__
*/
package com.agen.library.window;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import com.agen.library.util.DateUtil;
import com.agen.library.util.GlobalUser;
/**
*
* @author __USER__
*/
public class Main extends javax.swing.JFrame {
/**
*
*/
private static final long serialVersionUID = 907406449685862563L;
private JButton allReaderBut;
private JButton allBookBut;
private JButton leftBookBut;
private JButton borrowSitua;
private GridLayout gridLayout;
private JPanel jpanel2;
/** Creates new form Main */
public Main() {
super("Library Manager System");
Image ime = Toolkit.getDefaultToolkit().getImage(
getClass().getResource("/images/ico.png"));
setIconImage(ime);
initComponents();
setLocationRelativeTo(null);
this.setResizable(false);
}
//GEN-BEGIN:initComponents
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
gridLayout=new GridLayout(4, 1);
jpanel2=new JPanel(gridLayout);
main_img = new javax.swing.JLabel();
allReaderBut = new javax.swing.JButton("查看所有读者");
allBookBut = new javax.swing.JButton("查看所有书籍");
leftBookBut= new javax.swing.JButton("查看所剩书籍");
borrowSitua=new javax.swing.JButton("借书情况");
allReaderBut.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem24ActionPerformed(evt);
}
});
allBookBut.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem22ActionPerformed(evt);
}
});
leftBookBut.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem13ActionPerformed(evt);
}
});
borrowSitua.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem20ActionPerformed(evt);
}
});
jpanel2.add(allReaderBut);
jpanel2.add(allBookBut);
jpanel2.add(leftBookBut);
jpanel2.add(borrowSitua);
jLabel3 = new javax.swing.JLabel();
user_name = new javax.swing.JLabel();
main_time = new javax.swing.JLabel();
main_status = new javax.swing.JPanel();
status = new javax.swing.JProgressBar();
message = new javax.swing.JLabel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu6 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem3 = new javax.swing.JMenuItem();
jMenuItem4 = new javax.swing.JMenuItem();
jMenuItem5 = new javax.swing.JMenuItem();
jMenuItem6 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenuItem8 = new javax.swing.JMenuItem();
jMenuItem9 = new javax.swing.JMenuItem();
manager = new javax.swing.JMenu();
jMenu5 = new javax.swing.JMenu();
jMenuItem10 = new javax.swing.JMenuItem();
jMenuItem11 = new javax.swing.JMenuItem();
jMenuItem12 = new javax.swing.JMenuItem();
jMenu7 = new javax.swing.JMenu();
jMenuItem13 = new javax.swing.JMenuItem();
jMenuItem14 = new javax.swing.JMenuItem();
jMenuItem15 = new javax.swing.JMenuItem();
jMenu8 = new javax.swing.JMenu();
jMenuItem16 = new javax.swing.JMenuItem();
borrow_back = new javax.swing.JMenuItem();
borrow_delete = new javax.swing.JMenuItem();
borrow_query = new javax.swing.JMenu();
jMenuItem19 = new javax.swing.JMenuItem();
jMenuItem20 = new javax.swing.JMenuItem();
jMenu3 = new javax.swing.JMenu();
jMenu10 = new javax.swing.JMenu();
jMenuItem21 = new javax.swing.JMenuItem();
jMenuItem22 = new javax.swing.JMenuItem();
reader_query = new javax.swing.JMenu();
jMenuItem23 = new javax.swing.JMenuItem();
jMenuItem24 = new javax.swing.JMenuItem();
jMenu1 = new javax.swing.JMenu();
user_manager = new javax.swing.JMenu();
jMenuItem27 = new javax.swing.JMenuItem();
jMenuItem28 = new javax.swing.JMenuItem();
jMenuItem29 = new javax.swing.JMenuItem();
jMenu13 = new javax.swing.JMenu();
jMenuItem30 = new javax.swing.JMenuItem();
jMenuItem31 = new javax.swing.JMenuItem();
jMenuItem26 = new javax.swing.JMenuItem();
jMenuItem25 = new javax.swing.JMenuItem();
jMenu4 = new javax.swing.JMenu();
jMenuItem17 = new javax.swing.JMenuItem();
jMenuItem18 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("图书管理系统by 墨轩");
//main_img.setIcon(new javax.swing.ImageIcon(
// getClass().getResource("/images/main_3.jpg"))); // NOI18N
jLabel3.setFont(new java.awt.Font("微软雅黑", 0, 14));
jLabel3.setText("\u5f53\u524d\u7528\u6237\uff1a");
user_name.setFont(new java.awt.Font("微软雅黑", 0, 14));
user_name.setForeground(new java.awt.Color(249, 2, 2));
user_name.setText(" user");
main_time.setFont(new java.awt.Font("微软雅黑", 0, 18));
main_time.setForeground(new java.awt.Color(102, 102, 102));
main_time.setText("time");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout
.setHorizontalGroup(jPanel1Layout
.createParallelGroup(
javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(
javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout
.createSequentialGroup()
.addContainerGap(250, Short.MAX_VALUE)
.addComponent(
main_time,
javax.swing.GroupLayout.PREFERRED_SIZE,
211,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(223, 223, 223))
.addGroup(
javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout
.createSequentialGroup()
.addContainerGap(273, Short.MAX_VALUE)
.addComponent(jLabel3)
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(
user_name,
javax.swing.GroupLayout.PREFERRED_SIZE,
172,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(162, 162, 162))
.addGroup(
jPanel1Layout.createSequentialGroup()
.addGap(41, 41, 41)
.addComponent(jpanel2)
.addContainerGap(43, Short.MAX_VALUE)));
jPanel1Layout
.setVerticalGroup(jPanel1Layout
.createParallelGroup(
javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(
jPanel1Layout
.createSequentialGroup()
.addGap(31, 31, 31)
.addComponent(jpanel2)
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(
jPanel1Layout
.createParallelGroup(
javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(user_name))
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.RELATED,
26, Short.MAX_VALUE)
.addComponent(main_time)
.addContainerGap()));
main_status.setBorder(javax.swing.BorderFactory.createEtchedBorder());
message.setForeground(new java.awt.Color(63, 159, 195));
message.setText("--墨轩.Alex--");
javax.swing.GroupLayout main_statusLayout = new javax.swing.GroupLayout(
main_status);
main_status.setLayout(main_st
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
java完整的图书管理系统源码 mysql (275个子文件)
Main.class 24KB
BorrowUpdate.class 15KB
BookUpdate.class 14KB
Book_K_Find.class 12KB
Borrow_K_Find.class 12KB
Reader_K_Find.class 12KB
User_K_Find.class 12KB
ReaderUpdate.class 11KB
Login.class 11KB
BookAdd.class 11KB
UserUpdate.class 11KB
BorrowAdd.class 10KB
ReaderAdd.class 10KB
UserAdd.class 9KB
_Modify_Password.class 8KB
BorrowDelete.class 8KB
ReaderDelete.class 8KB
BookDelete.class 8KB
UserDelete.class 8KB
BorrowFind.class 7KB
ReaderFind.class 7KB
BookFind.class 7KB
UserFind.class 7KB
IBorrowDAOImpl.class 6KB
IBookDAOImpl.class 6KB
About.class 6KB
IReaderDAOImpl.class 5KB
OsINF.class 5KB
IUserDAOImpl.class 5KB
IBorrowDAOImplProxy.class 3KB
IReaderDAOImplProxy.class 3KB
Book.class 2KB
IBookDAOImplProxy.class 2KB
IUserDAOImplProxy.class 2KB
DateUtil.class 2KB
Borrow.class 2KB
Reader.class 2KB
User.class 2KB
Main$40.class 2KB
DataBaseConnection.class 1KB
Os.class 1KB
Main$39.class 1KB
Reader_K_Find$7.class 1KB
Borrow_K_Find$7.class 1KB
Borrow_K_Find$5.class 1KB
Reader_K_Find$5.class 1KB
User_K_Find$7.class 1KB
Book_K_Find$7.class 1KB
User_K_Find$5.class 1KB
Book_K_Find$5.class 1KB
Reader_K_Find$6.class 1KB
Borrow_K_Find$6.class 1KB
Reader_K_Find$4.class 1KB
Borrow_K_Find$4.class 1KB
Book_K_Find$6.class 1KB
User_K_Find$6.class 1KB
Book_K_Find$4.class 1KB
User_K_Find$4.class 1KB
Main$41.class 1KB
DAOFactory.class 985B
Main$38.class 936B
_Modify_Password$2.class 883B
_Modify_Password$1.class 883B
Login$1.class 875B
Reader_K_Find$3.class 862B
Reader_K_Find$1.class 862B
Borrow_K_Find$1.class 862B
Borrow_K_Find$3.class 862B
ReaderDelete$3.class 855B
ReaderDelete$2.class 855B
ReaderUpdate$1.class 855B
ReaderUpdate$2.class 855B
ReaderUpdate$3.class 855B
BorrowUpdate$2.class 855B
BorrowDelete$2.class 855B
BorrowDelete$1.class 855B
BorrowUpdate$1.class 855B
BorrowDelete$3.class 855B
ReaderDelete$1.class 855B
BorrowUpdate$3.class 855B
Book_K_Find$3.class 848B
Book_K_Find$1.class 848B
User_K_Find$3.class 848B
User_K_Find$1.class 848B
ReaderFind$1.class 841B
BookDelete$1.class 841B
BorrowFind$3.class 841B
ReaderFind$2.class 841B
BorrowFind$2.class 841B
BorrowFind$1.class 841B
BookDelete$3.class 841B
UserUpdate$3.class 841B
BookUpdate$3.class 841B
BookDelete$2.class 841B
UserUpdate$1.class 841B
BookUpdate$1.class 841B
UserDelete$2.class 841B
UserDelete$3.class 841B
UserDelete$1.class 841B
ReaderFind$3.class 841B
共 275 条
- 1
- 2
- 3
SalvationSelf
- 粉丝: 9
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页