下载此文档

围棋源代码java applet小程序.doc


文档分类:IT计算机 | 页数:约10页 举报非法文档有奖
1/10
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/10 下载此文档
文档列表 文档介绍
围棋源代码java_applet小程序/*一个Java围棋程序源代码*/
import .*;
import .*;
import ;
public class Chess extends Frame
{
ChessPad chesspad= new ChessPad();
Chess()
{
add(chesspad);
(70,90,440,440);
Label label=new Label("click to point,doubled_click to remove,right click to back",);
add(label);
(70,55,440,24);
();
addWindowListener
(
new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
(0);
}
}
);
setLayout(null);
setVisible(true);
setSize(600,550);
}
public static void main(String args[])
{
Chess chess=new Chess();
}
}
class ChessPad extends Panel implements MouseListener, ActionListener,FocusListener
{
int x = -1, y = -1, chessColor = 1;
String blackname="",whitename="";
Button startbutton=new Button("restart");
Button inputButton=new Button("input");
TextField text_1=new TextField("black please"),
text_2=new TextField(""),//white please
text_3=new TextField("black'name"),
text_4=new TextField("white'name");
ChessPad()
{
add(inputButton);
(35,5,60,26);
(this);
(this);
add(text_3);
(115,5,90,24);

围棋源代码java applet小程序 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数10
  • 收藏数0 收藏
  • 顶次数0
  • 上传人ranfand
  • 文件大小32 KB
  • 时间2021-08-16