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

📄 extendbutton.java

📁 JAVA小游戏。双人五子棋。需先下载编译器。
💻 JAVA
字号:
//ExtendButton.java

package ly.java;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class ExtendButton extends JButton
{
 private int Button_Pos;
 private boolean Button_Status;
 private boolean Button_Visited;

 public int SetPostion(int pos)
 {
  this.Button_Pos = (pos >= 0 && pos <= 81) ? pos : 0;
  return this.Button_Pos ;
 } 
 public int GetPostion()
 {
  return this.Button_Pos;
 }
 public boolean SetStatus(boolean sta)
 {
  this.Button_Status = sta;
  return this.Button_Status;
 }
 public boolean GetStatus()
 {
  return this.Button_Status;
 }
 public boolean Visited()
 {
  return this.Button_Visited;
 }
 public boolean SetVisited(boolean vis)
 {
  this.Button_Visited = vis;
  return this.Button_Visited;
 }
}

 


⌨️ 快捷键说明

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