• 大小: 0.19M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-16
  • 语言: Java
  • 标签: java  二维码  

资源简介

java生成二维码、调用摄像头扫描二维码源码,供大家一起参考学习。

资源截图

代码片段和文件信息

package ui;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferedImage;

import javax.swing.Jframe;

public class baseframe extends Jframe implements MouseMotionListener {

/**
 * 窗体宽
 */
private int w;

/**
 * 窗体长
 */
private int h;

private int gameLocationX;

private int gameLocationY;

private int gameW;

private int gameH;

private int squaresSize;

private int focusX;

private int focusY;

int x y;

public baseframe() {
init();
this.setBounds(100 100 w h);
this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
this.setVisible(true);
this.addMouseMotionListener(this);
}

private void init() {
w = 800;
h = 600;
gameLocationX = 50;
gameLocationY 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-06 14:20  tower\
     目录           0  2012-12-06 14:20  tower\TowerDefense1.1\
     文件         226  2012-12-06 14:20  tower\TowerDefense1.1\.classpath
     文件         371  2012-12-06 14:20  tower\TowerDefense1.1\.project
     目录           0  2012-12-06 14:20  tower\TowerDefense1.1\bin\
     目录           0  2012-12-06 14:20  tower\TowerDefense1.1\bin\ui\
     文件        2410  2012-12-06 14:20  tower\TowerDefense1.1\bin\ui\baseframe.class
     目录           0  2012-12-06 14:20  tower\TowerDefense1.1\src\
     目录           0  2012-12-06 14:20  tower\TowerDefense1.1\src\ui\
     文件        1972  2012-12-06 14:20  tower\TowerDefense1.1\src\ui\baseframe.java
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\
     文件         226  2012-12-06 14:20  tower\TowerDefense1.2\.classpath
     文件         371  2012-12-06 14:20  tower\TowerDefense1.2\.project
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\bin\
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\bin\control\
     文件         769  2012-12-06 14:20  tower\TowerDefense1.2\bin\control\baseControl.class
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\bin\data\
     文件        3575  2012-12-06 14:20  tower\TowerDefense1.2\bin\data\baseData.class
     文件         350  2012-12-06 14:20  tower\TowerDefense1.2\bin\data\Data.class
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\bin\model\
     文件         615  2012-12-06 14:20  tower\TowerDefense1.2\bin\model\Ball.class
     文件        2209  2012-12-06 14:20  tower\TowerDefense1.2\bin\model\Fighter.class
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\bin\thread\
     文件        1445  2012-12-06 14:20  tower\TowerDefense1.2\bin\thread\FighterThread.class
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\bin\ui\
     文件        3635  2012-12-06 14:20  tower\TowerDefense1.2\bin\ui\baseframe.class
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\src\
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\src\control\
     文件         394  2012-12-06 14:20  tower\TowerDefense1.2\src\control\baseControl.java
     目录           0  2012-12-06 14:20  tower\TowerDefense1.2\src\data\
     文件        5297  2012-12-06 14:20  tower\TowerDefense1.2\src\data\baseData.java
............此处省略240个文件信息

评论

共有 条评论