• 大小: 60KB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2023-12-29
  • 语言: Java
  • 标签: java+mysql  

资源简介

数据库课程设计 界面简介能实现数据的增删改查。如没积分工程源码:链接: https://pan.baidu.com/s/1dgYv8OiIuF0cAAVy0JmThg 密码: tduh

资源截图

代码片段和文件信息

package zohra;
import java.net.*;
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
import java.util.*;
  class Book extends Jframe implements ActionListener{
  JButton QueryScore=new JButton(“教材查询 “);
  JButton QueryXuefen=new JButton(“教材入库 “);
  JButton jiangfa=new JButton(“教材删除 “);
       JButton xuanke=new JButton(“教材概览 “);
       JButton gaiMima=new JButton(“打印 “);
          JMenuBar mb = new JMenuBar();
           JPanel jp=new JPanel();//菜单栏用来填放子模块

           Container cp=getContentPane();
           String username;
           Book(){}
           Book(String username){
            this.username=username;
mb.add(QueryScore);
mb.add(QueryXuefen);
mb.add(jiangfa);
mb.add(xuanke);
mb.add(gaiMima);
cp.add(mb“North“);
//设置边框
jp.setBorder(BorderFactory.createtitledBorder(BorderFactory
.createLineBorder(Color.blue 2)null
titledBorder.CENTER titledBorder.TOP));
jp.setLayout(new BorderLayout());
JLabel label1 = new JLabel(new ImageIcon(“./pic/1.6.jpg“));
jp.add(label1);
//JLabel JL=new JLabel(““SwingConstants.CENTER);
//jp.add(JL“North“);
//JLabel label2 = new JLabel(new ImageIcon(“1.6.jpg“));
//jp.add(label2“South“);
JScrollPane scrollpane=new JScrollPane(jp);
cp.add(scrollpane);
settitle(“欢迎登陆 “);
Toolkit kit=Toolkit.getDefaultToolkit();
Dimension screen=kit.getScreenSize();
/* 取得显示器窗口的宽度 */
int x=screen.width;
/* 取得显示器窗口的高度*/
int y=screen.height;
/*让系统窗口平铺整个显示器窗口*/
//setSize(xy);
setSize(600600);
int xcenter=(x-600)/2;
int ycenter=(y-600)/2;
setLocation(xcenterycenter);/*显示在窗口中央 */
setVisible(true);
setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);// 注册临听器
QueryScore.addActionListener(this);
QueryXuefen.addActionListener(this);
jiangfa.addActionListener(this);
xuanke.addActionListener(this);
}
public void actionPerformed(ActionEvent e){
String cmd=e.getActionCommand();
if (cmd.equals(“教材查询 “)){
new QueryBook();
}
if (cmd.equals(“教材入库 “)){
new BookIn();
}
if (cmd.equals(“教材删除 “)){
new RemoveBook();
}
if (cmd.equals(“教材概览 “))
{new BookBrower().showRecord();
}
}
public static void main(String[]args){
new Book(““);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-07-08 08:03  zohra\
     文件         695  2020-07-08 04:13  zohra\.classpath
     文件         364  2020-07-08 01:57  zohra\.project
     目录           0  2020-07-08 08:03  zohra\.settings\
     文件         767  2020-07-08 01:57  zohra\.settings\org.eclipse.jdt.core.prefs
     目录           0  2020-07-08 08:03  zohra\bin\
     文件         695  2020-07-08 04:13  zohra\bin\.classpath
     文件         364  2020-07-08 01:57  zohra\bin\.project
     目录           0  2020-07-08 08:03  zohra\bin\.settings\
     文件         767  2020-07-08 01:57  zohra\bin\.settings\org.eclipse.jdt.core.prefs
     目录           0  2020-07-08 08:03  zohra\bin\pic\
     文件       19567  2020-07-08 06:36  zohra\bin\pic\1.6.jpg
     目录           0  2020-07-08 08:03  zohra\bin\zohra\
     文件        3778  2020-07-08 07:59  zohra\bin\zohra\Book.class
     文件        5566  2020-07-08 07:19  zohra\bin\zohra\BookBrower.class
     文件        5578  2020-07-08 07:19  zohra\bin\zohra\BookIn.class
     文件         636  2020-07-08 07:12  zohra\bin\zohra\Login$1.class
     文件        3388  2020-07-08 07:12  zohra\bin\zohra\Login.class
     文件        6047  2020-07-08 07:24  zohra\bin\zohra\QueryBook.class
     文件        7113  2020-07-08 07:27  zohra\bin\zohra\RemoveBook.class
     文件        2094  2020-07-08 06:10  zohra\bin\zohra\sql.class
     目录           0  2020-07-08 08:03  zohra\pic\
     文件       19567  2020-07-08 06:36  zohra\pic\1.6.jpg
     目录           0  2020-07-08 08:03  zohra\src\
     目录           0  2020-07-08 08:03  zohra\src\zohra\
     文件        2646  2020-07-08 07:59  zohra\src\zohra\Book.java
     文件        3660  2020-07-08 07:19  zohra\src\zohra\BookBrower.java
     文件        4000  2020-07-08 07:19  zohra\src\zohra\BookIn.java
     文件        1991  2020-07-08 07:12  zohra\src\zohra\Login.java
     文件        4290  2020-07-08 07:24  zohra\src\zohra\QueryBook.java
     文件        5155  2020-07-08 07:27  zohra\src\zohra\RemoveBook.java
............此处省略1个文件信息

评论

共有 条评论