⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dragwindowevent.java

📁 mp3播放功能
💻 JAVA
字号:
package WindowType;

import java.util.EventObject;
/**
 * Class extends EventObject to deal with the dragEvent
 * Members delX ,delY to save the location delta with their getters and setters
 * @author DuXiaojing
 *
 */
public class DragWindowEvent extends EventObject{
	private int delX;
	private int delY;

	public int getDelX() {
		return delX;
	}

	public void setDelX(int delX) {
		this.delX = delX;
	}

	public int getDelY() {
		return delY;
	}

	public void setDelY(int delY) {
		this.delY = delY;
	}
/**
 * Constructer to call the super method 
 * @param source Object object
 */
	public DragWindowEvent(Object source) {
		super(source);
		// TODO Auto-generated constructor stub
	}
/**
 * Constructer to call the super method
 * @param source Object object
 * @param delX location of X sent from the outer 
 * @param delY location of Y sent from the outer 
 */
	public DragWindowEvent(Object source,int delX, int delY) {
		super(source);
		this.delX = delX;
		this.delY = delY;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -