资源简介
用myeclipse写的java图书管理系统,数据库用的mysql,另附mysql驱动
代码片段和文件信息
/*
* Mainframe.java
*
* Created on __DATE__ __TIME__
*/
package bookstore.manage;
import java.util.TimerTask;
import javax.swing.JOptionPane;
/**
*
* @author __USER__
*/
public class Mainframe extends javax.swing.Jframe {
/** Creates new form Mainframe */
public Mainframe() {
initComponents();
}
/**
* 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
//
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
label1 = new java.awt.Label();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem4 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem3 = new javax.swing.JMenuItem();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem5 = new javax.swing.JMenuItem();
jMenuItem6 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenuItem8 = new javax.swing.JMenuItem();
jMenu3 = new javax.swing.JMenu();
jMenu4 = new javax.swing.JMenu();
jMenuItem11 = new javax.swing.JMenuItem();
jMenuItem12 = new javax.swing.JMenuItem();
jMenuItem10 = new javax.swing.JMenuItem();
jMenuItem9 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
label1.setAlignment(java.awt.Label.CENTER);
label1.setFont(new java.awt.Font(“Dialog“ 2 48));
label1.setForeground(new java.awt.Color(0 0 204));
label1.setText(“\u6b22\u8fce\u8fdb\u5165“);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.LEADING).addGroup(
jPanel1Layout.createSequentialGroup().addGap(79 79 79)
.addComponent(label1
javax.swing.GroupLayout.PREFERRED_SIZE
javax.swing.GroupLayout.DEFAULT_SIZE
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(336 Short.MAX_VALUE)));
jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.LEADING).addGroup(
jPanel1Layout.createSequentialGroup().addGap(49 49 49)
.addComponent(label1
javax.swing.GroupLayout.PREFERRED_SIZE
javax.swing.GroupLayout.DEFAULT_SIZE
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(247 Short.MAX_VALUE)));
timer = new java.util.Timer();
timer.scheduleAtFixedRate(new java.util.TimerTask() {
public void run() {
if ((label1.getLocation().y + label1.getSize().getHeight()) < jPanel1
.getSize().getHeight()
&& (label1.getLocation().x + label1.getSize()
.
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 436 2011-03-22 15:02 BookStore\.classpath
文件 385 2011-03-22 14:32 BookStore\.project
文件 2417 2011-03-24 23:18 BookStore\bin\bookstore\db\Dboprea.class
文件 780 2011-03-24 23:18 BookStore\bin\bookstore\Logo\Logofr
文件 780 2011-03-24 23:18 BookStore\bin\bookstore\Logo\Logofr
文件 718 2011-03-24 23:18 BookStore\bin\bookstore\Logo\Logofr
文件 6569 2011-03-24 23:18 BookStore\bin\bookstore\Logo\Logofr
文件 7338 2011-03-22 15:23 BookStore\bin\bookstore\Logo\Logofr
文件 2419 2011-03-24 23:18 BookStore\bin\bookstore\manage\Mainfr
文件 792 2011-03-24 23:18 BookStore\bin\bookstore\manage\Mainfr
文件 6220 2011-03-24 23:18 BookStore\bin\bookstore\manage\Mainfr
文件 8549 2011-03-23 18:33 BookStore\bin\bookstore\manage\Mainfr
文件 5904 2011-03-22 14:39 BookStore\bin\bookstore\panel\book.jpg
文件 1421 2011-03-24 23:18 BookStore\bin\bookstore\panel\ImagePanel.class
文件 2850 2011-03-22 14:35 BookStore\lib\AbsoluteLayout.jar
文件 397032 2011-03-18 18:26 BookStore\lib\mysqldriver.jar
文件 118103 2011-03-22 14:35 BookStore\lib\swing-layout-1.0.3.jar
文件 1284 2011-03-22 22:04 BookStore\src\bookstore\db\Dboprea.java
文件 7338 2011-03-22 15:23 BookStore\src\bookstore\Logo\Logofr
文件 8758 2011-03-22 15:23 BookStore\src\bookstore\Logo\Logofr
文件 9028 2011-03-23 13:32 BookStore\src\bookstore\Mainfr
文件 8549 2011-03-23 18:33 BookStore\src\bookstore\manage\Mainfr
文件 9362 2011-03-23 18:33 BookStore\src\bookstore\manage\Mainfr
文件 5904 2011-03-22 14:39 BookStore\src\bookstore\panel\book.jpg
文件 768 2011-04-03 21:00 BookStore\src\bookstore\panel\ImagePanel.java
目录 0 2011-03-24 23:18 BookStore\bin\bookstore\db
目录 0 2011-03-24 23:18 BookStore\bin\bookstore\Logo
目录 0 2011-03-24 23:18 BookStore\bin\bookstore\manage
目录 0 2011-03-24 23:18 BookStore\bin\bookstore\panel
目录 0 2011-03-22 14:51 BookStore\src\bookstore\db
............此处省略12个文件信息
- 上一篇:车辆路径问题java程序
- 下一篇:java界面置顶显示文字
评论
共有 条评论