button.java

来自「Java扫雷程序,主要实现了基本的算法」· Java 代码 · 共 27 行

JAVA
27
字号
// File Name:    Button.java
// Author:       TianBaideng		Student Number: 3005218107
// Class Day:    thursday			Class Number: 4		Class Year: 2005
// Email:        tian_bai_deng@126.com
// Assignment number:  4
// Description:  this class just like a struct including the status of buttons
//				 such as the 
import javax.swing.*;
public class Button extends JButton {
	
	//the left button is clicked or not
    int Lclick ;
    
    //the right button clicked number
    int Rclick;
    
    //the button is mark with flag or not
	int flag;
	
	public Button()
	{
		Lclick = 0 ;
		Rclick = 0;
		flag = 0;
	}
}

⌨️ 快捷键说明

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