资源简介
码字不易,好用请给好评
代码片段和文件信息
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileChannel.MapMode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.linkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
import javax.imageio.ImageIO;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.SourceDataLine;
import javax.sound.sampled.TargetDataLine;
import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JPanel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
/**
* java录像小程序: 视频文件保存在系统临时目录 回车全屏播放 ESC退出全屏播放
* @author dgqjava
*
*/
@SuppressWarnings(“serial“)
public class Mainframe extends Jframe {
private static final int WIDTH = 200;
private static final int HEIGHT = 70;
private static final Color BUTTON_COLOR = new Color(155 183 214);
private static final Color BUTTON_FOCUS_COLOR = new Color(87 156 242);
private static final Color BUTTON_DISABLE_COLOR = new Color(180 207 229);
private static final Font BUTTON_FONT = new Font(“华文行楷“ Font.BOLD 15);
private static final String DEFAULT_FILE_PATH = System.getProperty(“java.io.tmpdir“);
private static Dimension screenSize;
private final JButton start = new JButton(“开始“);
private final JButton pause = new JButton(“暂停“);
private final JButton restart = new JButton(“继续“);
private final JButton stop = new JButton(“完成“);
private final JButton play = new JButton(“播放“);
private final JButton close = new JButton(“退出“);
private String currentFilePath;
public Mainframe() {
setUndecorated(true);
setSize(WIDTH HEIGHT);
Toolkit tk = Toolkit.getDef
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 40156 2019-05-08 11:22 Mainfr
文件 0 2019-05-08 11:23 readMe.txt
相关资源
- java股票实时查询小软件
- 考试管理系统,期末大作业,java,
- Java网络编程 多点聊天chatting 服务器
- java连连看游戏源代码
- Java五子棋局域网联机版
- 银行系统java源代码。。。。。。。。
- 评论回复功能demo
- javaFX写的推箱子小游戏
- java-个人生活助手源代码+sql
- mysql-connector-java-5.1.8-bin
- java短信验证前后台全部
- mysql-connector-java-5.1.7-bin.jar.rar
- JAVA实现GUI计时器+贪吃蛇+扫雷
- java写的画板
- mysql-connector-java-5.1.40-bin.jar连接器
- java实现学生管理系统控制台
- Java实现-生成带参的小程序二维码
- JAVA 像素鸟游戏
- java超市收银系统
- java百度OCR文字识别名片信息补充
- java数据库编程,对数据库的一系列操
- 纯JavaSwing界面,小型人才资源管理系
- ValidateCode.jar包含用法,Java生成图片验
- 网络调试助手NetAssistjava socket通讯代码
- SMS4国密封装接口直接可用java.zip
- JSP + MySQL+Servlet+JavaBean 实现图片上传
- Mateix3x3f.java矩阵的Java实现
- Java投票系统
- 基于Java实现的socket即时通信系统
- 程序设计外文资料
评论
共有 条评论