资源简介
模板.zip
代码片段和文件信息
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class 图书管理系统 {
public static void main(String[] args) {
new ashore();
new Main();
}
}
class ashore extends Jframe implements KeyListenerActionListener{
private static final long serialVersionUID = 1L;
private Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
private Dimension size = new Dimension((int) (screen.getWidth()/5)(int) (screen.getHeight()/2));
private drag drg = new drag(this);
private Color color = new Color(245245245);
private topNav top = new topNav(size.width);
private body bod = new body(size.width size.height);
private JButton close = new JButton(“关“);
private JButton min = new JButton(“收“);
public ashore() {
this.setSize(size);
this.setLayout(null);
this.setLocation((screen.width-this.getWidth())/2 (screen.height-this.getHeight())/2);
this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
top.settitle(“登陆“);
close.addActionListener(this);
top.add(close);
min.addActionListener(this);
top.add(min);
this.add(top);this.add(bod);
this.setUndecorated(true);
this.getContentPane().setBackground(color);
this.setResizable(false);
this.addMouseListener(drg);
this.addMouseMotionListener(drg);
this.setIconImage(new ImageIcon(“./images/lo.png“).getImage());
this.getRootPane().setBorder(BorderFactory.createMatteBorder(0 0 1 0 new Color(200200200)));
this.setOpacity(0.95f);
this.setVisible(true);
}
@Override
public void keyTyped(KeyEvent e) {
}
@Override
public void keyPressed(KeyEvent e) {
}
@Override
public void keyReleased(KeyEvent e) {
}
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == close) {
this.dispose();
System.exit(0);
}else if(e.getSource() == min) {
this.setState(Jframe.HIDE_ON_CLOSE);
}
}
}
class Main extends Jframe implements KeyListenerActionListener{
private static final long serialVersionUID = 1L;
private Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
private Dimension size = new Dimension((int) (screen.getWidth()-400)(int) (screen.getHeight()-200));
private drag drg = new drag(this);
private Color color = new Color(245245245);
private topNav top = new topNav(size.width);
private body bod = new body(size.width size.height);
private JButton close = new JButton(“关“);
private JButton min = new JButton(“收
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-04 12:44 模板\
目录 0 2019-01-04 12:44 模板\images\
文件 5714 2019-01-04 01:08 模板\images\lo.png
文件 6658 2019-01-04 12:44 模板\图书管理系统.java
- 上一篇:国密SM4加密解密工具
- 下一篇:win10 dll库libcurl 64位
相关资源
- RHCSA.pdf
- 链接和密码.rar
- TWINCAT3.zip
- 2019最新padsVX2.4完整版安装包破解文件
- 两位按键控制一个数码管加减.zip
- 提取码.txt
- 3dsMax2016从入门到精通中文版随书光盘
- Tianyancha_Data_Collection_ChangeInfo.ipynb
- iCopy解码软件v1.0.1.7.exe
- servo.slx
- js.txt
- Visio2013版64位激活工具地址.txt
- 基于LDA主题模型的短文本分类方法_张
- 计算机网络慕课.docx
- LenovoEDU9.0MBR版底层驱动.txt
- project1.0.zip
- Robomotion.zip
- Kalman滤波原理及程序手册.doc282116
- 模糊PI控制器回馈好朋友的帮助帮助其
- Anti保密检查工具v1.5绿色版.rar
- 清华天河pccad201564位中文正式特别版(
- iOS游戏开发视频教程《愤怒的小鸟》
- 计算机组成原理复习指导教学视频课
- 千锋SpringBatch批处理实战教程.txt
- ios-swift 实现扫雷.zip
- 吉林大学《人工智能》课程视频32集
- 《C标准模板库编程实战》.txt
- 3k6f0g.NET微博源代码合集.txt
- 北风网ADO.NET教学系列视频10讲.txt
- ios-仿美团点餐列表界面.zip
评论
共有 条评论