1. java圖書管理界面系統的源代碼
javaswing登陸界面code
/*
* Login.java
*
* Created on __DATE__, __TIME__
*/
package com.agen.library.window;
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.;
import com.agen.library.factory.DAOFactory;
import com.agen.library.util.GlobalUser;
import com.agen.library.vo.User;
/**
*
* @author __USER__
*/
public class Login extends javax.swing.JFrame {
/**
*
*/
private static final long serialVersionUID = -2176093732040600809L;
/** Creates new form Login */
public Login() {
("易雲圖書管理軟體V1.0");
Image ime = Toolkit.getDefaultToolkit().getImage(
getClass().getResource("/images/ico.png"));
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch ( e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
setIconImage(ime);
initComponents();
setLocationRelativeTo(null);
this.setResizable(false);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
// GEN-BEGIN:initComponents
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jPasswordField1 = new javax.swing.JPasswordField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem2 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
formKeyPressed(evt);
}
public void keyTyped(java.awt.event.KeyEvent evt) {
formKeyTyped(evt);
}
});
jLabel2.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jLabel2.setText("\u7528\u6237\u540d\uff1a");
jLabel3.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jLabel3.setText("\u5bc6 \u7801\uff1a");
jTextField1.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
jPasswordField1.setFont(new java.awt.Font("微軟雅黑", 0, 12));
jPasswordField1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jPasswordField1KeyTyped(evt);
}
});
jButton1.setBackground(new java.awt.Color(223, 216, 216));
jButton1.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jButton1.setText("\u767b\u9646");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setBackground(new java.awt.Color(223, 216, 216));
jButton2.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jButton2.setText("\u53d6\u6d88");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jLabel1.setIcon(new javax.swing.ImageIcon(
getClass().getResource("/images/login_main.jpg"))); // NOI18N
jMenu1.setText("File");
jMenu1.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
java.awt.event.KeyEvent.VK_Q,
java.awt.event.InputEvent.CTRL_MASK));
jMenuItem1.setText("Exit");
jMenuItem1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jMenuItem1MouseClicked(evt);
}
});
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Help");
jMenu2.setFont(new java.awt.Font("微軟雅黑", 0, 14));
jMenuItem2.setText("About");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem2);
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(layout
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addGroup(
layout.createSequentialGroup()
.addContainerGap()
.addGroup(
layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.TRAILING,
false)
.addComponent(
jLabel2,
javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(
javax.swing.GroupLayout.Alignment.LEADING,
layout.createSequentialGroup()
.addComponent(
jLabel3)
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(
layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(
layout.createSequentialGroup()
.addGap(10,
10,
10)
.addComponent(
jButton1)
.addGap(47,
47,
47)
.addComponent(
jButton2))
.addComponent(
jPasswordField1)
.addComponent(
jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE,
197,
Short.MAX_VALUE))
.addContainerGap()))));
layout.setVerticalGroup(layout
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(
layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(
layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(
jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
24,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(
layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(
jPasswordField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
23,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(
layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(
javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)));
pack();
}// </editor-fold>
// GEN-END:initComponents
private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
About.start();
}
private void jPasswordField1KeyTyped(java.awt.event.KeyEvent evt) {
if (evt.getKeyChar() == '\n') {
String name = jTextField1.getText(); // 獲取用戶名
String pass = String.valueOf(jPasswordField1.getPassword());// 獲取密碼
User user = null;
// 未輸入用戶名
if (name.equals("") || name == null) {
JOptionPane.showMessageDialog(this, "用戶名不允許為空!", "cuowu", 0);
return;
}
try {
user = DAOFactory.getIUserDAOInstance().findById(name);
if (user != null) {
if (user.getPass() != null && user.getPass().equals(pass)) {
GlobalUser.LOGIN_USER = user; // 記錄當前用戶
// 進入主界面
Main.start();
this.dispose();
} else {
JOptionPane.showMessageDialog(this, "用戶名或密碼錯誤!");
return;
}
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (user == null) {
JOptionPane.showMessageDialog(this, "用戶名或密碼錯誤!", "消息", 0);
return;
}
}
}
private void formKeyTyped(java.awt.event.KeyEvent evt) {
}
private void formKeyPressed(java.awt.event.KeyEvent evt) {
}
private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jTextField1.setText("");
jPasswordField1.setText("");
jTextField1.requestFocus();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String name = jTextField1.getText(); // 獲取用戶名
String pass = String.valueOf(jPasswordField1.getPassword());// 獲取密碼
User user = null;
// 未輸入用戶名
if (name.equals("")) {
JOptionPane.showMessageDialog(this, "用戶名不允許為空!");
return;
}
try {
user = DAOFactory.getIUserDAOInstance().findById(name);
if (user != null) {
if (user.getPass() != null && user.getPass().equals(pass)) {
GlobalUser.LOGIN_USER = user; // 記錄當前用戶
// 進入主界面
Main.start();
this.dispose();
} else {
JOptionPane.showMessageDialog(this, "用戶名或密碼錯誤!", "消息", 0);
return;
}
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (user == null) {
JOptionPane.showMessageDialog(this, "用戶名或密碼錯誤!", "消息", 0);
return;
}
}
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
if (JOptionPane.showConfirmDialog(this, "你確定要退出嗎?", "提示",
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
System.exit(0);
}
}
private void jMenuItem1MouseClicked(java.awt.event.MouseEvent evt) {
System.exit(1);
}
/**
* @param args
* the command line arguments
*/
public static void main(String args[]) {
// System.out.println(Login.class.getResource("src/images/images/login_main.jpg"));
// new javax.swing.ImageIcon(
// Login.class.getResource("../../../../images/login_main.jpg"));
// new Login().setVisible(true);
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Login().setVisible(true);
}
});
}
// GEN-BEGIN:variables
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JPasswordField jPasswordField1;
private javax.swing.JTextField jTextField1;
// End of variables declaration//GEN-END:variables
}
2. 在中國高等教育界圖書館能夠實現資源共享,使用了什麼系統
資源共享是好事啊,而且信息共享實現起來並不太難,但要有技術含量!用互聯網和圖書館數據建設!就像做一份清單,有什麼缺什麼一目瞭然
找到一個共享IP也就是共享資料的伺服器
具體訪問方法是在運行里打開//IP地址 就OK了
IP地址你就要自己去問你們圖書館了
圖書館網路化興起之後,標准化是維系圖書館網路的基礎。標准化和規范化有利於信息資源的共享。數據格式、描述語言及標引語言等只有符合大家可公認和遵守的統一標准,才能實現用戶與系統及系統與系統間的有效溝通。各中小型館可參與地區的聯機合作編目、館際互借、文獻傳遞等共享成員館的信息資源。
2.1.3要在合作開發數字化信息資源的前提下,實現這些信息資源的網上共享。
事實上,多數中小型院校圖書館受經濟實力和技術力量的限制,走館藏數字化之路困難重重。但是數字化、特色化是圖書館未來的發展方向,應該克服困難,從目前著手,進行特色館藏數字化建設,否則在未來的數字化社會中難有立足之地。館藏的數字化要注意知識產權的問題,應對相關人員進行版權知識的培訓,以免產生一些不必要的糾紛。數字化信息資源的建設要走合作開發的道路,將自己的數字化資源作為網路資源與成員館共享,實現網上特色化館藏建設,建立包括書目、文摘、原始文獻和多媒體在內的特色資料庫,換取其他館數字資源的使用權,實現資源共享。
2.2信息資源的特色化建設應當注重支持重點學科的重點科研項目
圖書館信息資源建設應當注重特色化,這是理論界公認的。搞好特色館藏是中小型院校圖書館的一項重要任務,也是其賴以生存的基礎。就這些館來講,筆者認為信息資源的特色化建設應當體現在對重點學科的支持上,將有限的經費有重點、有計劃的投入,扶持一些重點學科的重點科研項目,使其盡快佔領國內乃至國際本學科的學術制高點,推出國內外一流的科研成果。
教學和科研是高校的兩大職能,高校圖書館首先應該對日常的教學和科研提供信息資源保障,確保其正常運轉。在此基礎上實現本館的科研特色館藏,對重點學科的主要科研項目給以全方位的信息資源支持,使本學科領域的信息資源在數量、質量、品種、類型等方面具有一定規模並有較高的學術品位和情報價值,並且要進行科學的組織管理,使其具有多種檢索途徑和檢索功能。要做到這一點,就要對本院校的重點學科及科研情況做全方面的了解,及時跟蹤國內外相關學科的研究動態,對各種相關信息動態了如指掌,以便能及時、完整、准確地提供信息支持。
近年來,許多普通高校都引進了不少高層次人才,他們無論在教學還是在科研中都迫切需要最新最前沿的學術信息,科研特色館藏不能只滿足於現實資源的建設,還要通過網路及時獲取國內外相關學科豐富的網上信息資源。應當加強資料庫建設,通過自建、購進和網上下載等手段進行資料庫的建設,並根據重點學科的用戶需要,科學地組織、開發網上信息,為重點學科提供諸如教學、科研、技術動向、市場動態等各種信息,使研究人員不斷獲取該領域的前沿研究動態和最新進展資料。
搞好科研特色館藏,除了收集某一學科領域的國家出版社正式出版的文獻信息資料外,還要注重地方文獻中非正式出版物的收藏,如實驗室的試驗報告、會議文件、簡報、內部雜志、各團體的文件、地方性的刊物、地方專家學者的手稿等。
2.3合理調整印刷型文獻和各種電子文獻的館藏結構,完善信息資源建設體系,提高文獻利用率。
印刷型文獻迄今仍是館藏的主體,它在信息資源建設中的主要地位在較長時期內不會動搖。它比較適合人們的閱讀習慣,且易於獲取、瀏覽方便,瀏覽是文獻檢索和文獻篩選的重要方式。中小型院校圖書館有其特定的讀者群,在電腦沒有普及而且大部分讀者的經濟支出能力有限的情況下,館藏信息資源還應以印刷型文獻為主。印刷型文獻的收藏應該能滿足教學和科研80%以上的需求,其餘的通過光碟型和網路型信息資源獲取。縮微型信息資源的閱讀需要專門的設備,而這種設備並不普及,所以縮微型信息資源的收藏比例會不斷下降。
電子文獻是一種新型的知識和信息載體,它具有體積小、存儲信息量大、傳輸速度快、檢索方便和易復制等特點,它包括光碟等普通電子出版物和網路電子出版物。隨著圖書館自動化、網路化的發展,各中小型院校圖書館正在逐步加大對電子文獻的收藏力度。然而,相當一部分電子文獻的內容與印刷型文獻的內容是相同的,再加上圖書館的經費有限,在信息資源建設中就要合理處理印刷型文獻和各種電子文獻的關系。對於中小型院校圖書館來講,購買電子文獻的目的並不是要單獨形成一個電子文獻體系,而要使已有的信息資源體系更加完善、實用性更強、更加方便讀者的檢索。所以,在同一信息資源有多種載體的情況下,應該結合自己的實際情況選擇文獻類型。一般情況下,對於檢索類文獻以及經常更新且不必整本瀏覽的資料,如期刊、會議記錄等,可發揮計算機檢索的優勢,在文獻收藏上宜選用電子文獻取代印刷品。檢索類電子文獻應當選擇全文本與文獻檢索一體化的文獻,如《中國學術期刊光碟版》等。部分利用率高的文獻,可同時收藏電子版和印刷版,以滿足不同用戶的多途徑檢索要求,如:《人大復印資料》、《中國法律年鑒》等。印刷型文獻可供讀者日常使用,光碟資料庫可用於定題服務。另外,讀者的閱讀習慣和本館的設備狀況也是選擇文獻載體應當考慮的因素。值得注意的是,在購買連續出版物性質的光碟資料庫時,要看是否有以網路資料庫方式提供的同類產品,因為隨著網路速度、網路信息更新速度的加快,光碟資料庫會逐漸被網路資料庫取代,且光碟資料庫較滯後,還需配備光碟塔、光碟庫、伺服器等設備,所以同類產品中應首先考慮購買網路資料庫的許可權。
3. javafx實現圖書館界面跳轉,要求可以實現借書,還書,查詢圖書等功能,同時要求登錄進入圖書館界面
需要該項目代碼的同學可以在我頭像簡介中找到你需要的東西,發你一份